使用android stuido 编译项目时,项目的路径包含中文无法编译成功解决办法

来源:互联网 发布:关于网络语言暴力论文 编辑:程序博客网 时间:2024/05/19 22:45

1、使用android stuido 编译项目时,项目的路径包含中文无法编译成功


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 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.

解决方法:

1、打开gradle.properties配置文件


2、添加属性 com.android.build.gradle.overridePathCheck=true 



最后再重新编译下项目就ok了,此时studio自动忽略了路径检查


   
阅读全文
0 0
原创粉丝点击