当前位置: 移动技术网 > 移动技术>移动开发>Android > 中文路径导致的报错

中文路径导致的报错

2020年07月08日  | 移动技术网移动技术  | 我要评论

Error:Your project path contains non-ASCII characters.

根据提示
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.

在gradle.properties中添加
com.android.build.gradle.overridePathCheck=true
即可

或者更简单的
把现有的项目的路径修改为不包含英文的。

但是经测试貌似添加
com.android.build.gradle.overridePathCheck=true
的方法后续还会有问题
而中文路径改成英文后可以运行了
所以还是不要用中文路径了

本文地址:https://blog.csdn.net/qq_24440801/article/details/107178812

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网