kotlin引用module后运行报错Unresolved reference
编译没问题,但是运行时报错,我碰到的原因是因为module中没有配kotlin插件
在module build.gradle 中加入
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
即可。
参考https://stackoverflow.com/questions/49124353/unresolved-reference-errors-for-android-library-module-ref..
原创
2021-06-27 22:20:42 ·
852 阅读 ·
2 评论