2017-06-15 14 views
8

Tôi có điều này trong building.gradle tôiCập nhật phiên bản thư viện tự động cho các dự án Gradle hiện không được hỗ trợ. Vui lòng cập nhật build.gradle của bạn bằng tay

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" 

} 

và luôn luôn chỉ cho tôi này

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. 

enter image description here

Trả lời

14

Cập nhật phiên bản 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" 

} 
+0

Mọi thứ được đề cập là lỗi thời –

Các vấn đề liên quan