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.
<a href="openFile:H:\Studio Workspace\管理助手\EsintManager\app\build.gradle">Open File</a>
出现这种错误是因为工程文件的路径有中文名字,解析不了,只要把路径上的中文删除或者改成英文就行。



因为路径上的文件名被修改了,原来打开的工程也会跟丢,最后重新打开工程就好了。
本文介绍了解决Gradle构建过程中因项目路径包含非ASCII字符导致构建失败的问题。通过更改含有中文或其他特殊字符的路径为纯英文路径,可以有效避免此错误。
1585

被折叠的 条评论
为什么被折叠?



