R' is only available since Kotlin 1.3.50 and cannot be used in Kotlin 1.3
在运行项目时,编译出错
解决:
更改你的 kotlin-gradle-plugin 插件到正确版本。
我的是:
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.20"
其他
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1'