关于导入项目报错相关问题

来源:互联网 发布:电脑蓝牙软件下载 编辑:程序博客网 时间:2024/06/01 08:20

不定期更新

1. 还是万恶的打开项目就出错,这个可爱的Error模样

use embedded JDK(recommended) Download JDK 8Select a JDK from the File System

Please use JDK 8 or new

  1. 升级到JDK8
  2. 点击 Select a JDK from the File System或者点击File选择other setting,再点击Default Project Structure,设置本地JDK8所在目录,应用即可。(一升级成千古恨。。。)
    一起追寻设置的踪迹

    就是它,调教一番就好了

2. android:overridePathCheck=true

Error:(1, 0) 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 using the command line flag -Dcom.android.build.gradle.overridePathCheck=true, or adding the line 'com.android.build.gradle.overridePathCheck=true' to gradle.properties file in the project directory.

点了open file之后结果打开的是build.gradle,但是我不瞎,提示明明是gradle.properties
你有两个选择,是金是银随便你

  • 网上各位大神比较鄙视路径使用中文,不过,你可以改成拼音啊
  • 打开gradle.properties,在最后一行加上android.overridePathCheck=true就好了
    小小效果图

然后try again~~~

0 0
原创粉丝点击