Gradle项目的自动库版本更新当前不受支持。 请手动更新您的build.gradle
我有这个在我的building.gradle
buildscript { ext.kotlin_version = '1.1.2-4' ext.kotlin_version = '1.1.2' repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" }
总是给我看这个
Outdated Kotlin Runtime Your version of Kotlin runtime in 'kotlin-stdlib-1.1.2' library is 1.1.2, while plugin version is 1.1.2-release-Studio2.3-5. Runtime library should be updated to avoid compatibility problems.
将Kotlin版本更新到1.1.2-5:
buildscript { ext.kotlin_version = '1.1.2-5' repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" }
- 如何使用kotlinpoet生成带有单个类型参数的Kotlin“Unit”类型的构造函数参数?
- MapDB ClassNotFoundException:kotlin.jvm.internal.Intrinsics
- 通用扩展属性接收器类型不匹配
- 在Kodein中传递lambda作为参数
- 在Kotlin中使用Flowable的多个改进2请求
- Android OutOfMemoryError:未能分配一个57993496字节分配与16764448空闲字节
- 如何在AndroidStudio中使用Dagger2和Kotlin在其他项目模块中实现接口库
- 如何将ByteArray转换为Kotlin中指定字符集的字符串
- Kotlin – 将List转换为MutableList的最常用的方法
- 如何在kotlin中分配相同名称的类变量?
- 使用Anko获取类型不匹配错误需要AnkoContext <ViewGroup>找到AnkoContext <Context>