Could not find org.jetbrains.kotlin:kotlin-stdlib-jre8:1.3.21. 改
kotlin-stdlib-jdk7
com.android.tools.build:gradle:*.*.* 改
com.android.tools.build:gradle:3.3.2 改3.3.2 依然报错
GradleBuildTools 当Gradle大于3.0的时候,ADT编译版本必须大于26.0.2。所以你可以降低Gradle及gradle-wapper版本,或者升级编译版本
提高
androidCompileSdkVersion 版本号 两个
repositories { google() 都加这一行 kotlin 看版本去 设置搜plugin 再搜
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
maven { url"https://dl.google.com/dl/android/maven2/" } http://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-compiler/ https://blog.csdn.net/tangxl2008008/article/details/52077021 https://blog.csdn.net/u012296101/article/details/50986082?utm_source=blogxgwz5 切换命令行执行 gradlew tasks --all https://blog.csdn.net/myatlantis/article/details/72779929 反复重启ide http://www.imooc.com/article/282724 加仓
-
- maven{
- url 'https://maven.aliyun.com/repository/jcenter'
- }
- maven{
- url 'http://maven.aliyun.com/nexus/content/groups/public'https://blog.csdn.net/mo911108/article/details/88603003
-
加仓 repositories { mavenCentral() // <-- add this at top google() jcenter() }