[Android]Upgrade Gradle wrapper to 4.8 version and re-import the project
发布时间
阅读量:
阅读量
老旧版本的安卓项目 在 较新的 AS里面打开造成的问题。
安卓AndroidStudio北极狐2020.3.1
File-Settings-Plugins-Choose Runtime

Choose Runtime找不到对应的。
在安卓项目里面
Project视图根目录build.gradle
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'//4.0.0改为4.1.0
// classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
// classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
google()
}
}
gradle和 Android gradle 版本号不对应,对应就行。
再Try Again,build
相关资料:
1.[Android]gradle与Android gradle
参考资料:
1.【工具使用】IDEA 2019 导入gradle工程问题
全部评论 (0)
还没有任何评论哟~
