Kotlin报错:Unresolved reference: X

2019-03-01  本文已影响0人  梦里风吹过

错误场景:在新的Moudle中导入

implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

运行报错:
Unresolved reference: XXX

解决办法:

apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
上一篇下一篇

猜你喜欢

热点阅读