记一次报错(路径方面)

来源:互联网 发布:大众软件多久一期 编辑:程序博客网 时间:2024/06/01 23:35
Error:(1, 0) Your project path contains non-ASCII characters. This will most likelycause the build to fail on Windows. Please move your project to a differentdirectory. 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 filein the project directory.

今天将github上的开源项目装载到AS后出现了如上的报错

经过检查发现原因很简单

就是源文件路径上有中文。。。

于是将那个中文文件夹改成了英文,再导入一次

OK~完事

以后也要注意开发相关的文件路径呀,都要是英语才行,否则很容易出现莫名其妙的报错


0 0