AS——打开项目遇到Your project path contains non-ASCII characters

记录一次Android Studio的导入报错,最近帮朋友搞一个项目,我把压缩包名称弄成了中文,他在解压直接在那个文件夹打开了遇到编译器提示:

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 adding the line 'android.overridePathCheck=true' 
to gradle.properties file in the project directory.

这个错误就是我朋友在打开的路径含有中文的时候才会出现的,解决办法有两种:

  1. 把文件夹名称改成英文重新打开;
  2. 上面的编译的错误提示其实有给出解决办法的,This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory.看这句,翻译成中文是可以通过添加行“android.overridePathCheck=true”禁用此警告到项目目录中的gradle.properties文件。

你可能感兴趣的:(Android,#,AndroidStudio)