sdk路径问题
The path D:\Android\SDK does not belong to a directory.Android studio will use
两种解决方法
- 点击ok更改Gradle Scripts下的local.properties文件的sdk路径
- 直接更改目标项目的上述文件
grade版本问题
-
查看...\classTest\classTestFifth\gradle\wrapper的gradle-wrapper.properties看版本号
-
下载相应的zip文件到本地C:\Users\Jessica.gradle\wrapper\dists
-
.....gradle\wrapper\dists\gradle-6.1.1-all\cfmwm155h49vnt3hynmlrsdst下解压
-
删掉目标项目的grade,然后导入即可(最好不要删,自己更改设置即可,不然很多问题)
中文路径问题
Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory.
更改到没有中文的路径
IDEA版本问题
This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 4.2 or newer.
解决方法1
change to
classpath 'com.android.tools.build:gradle:4.0.1'
in file build.Gradle (Project)
解决方法2
更新as