在as工具运行android项目报错:Caused by: org.gradle.api.tasks.StopExecutionException: 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.
翻译:由:org.gradle.api.tasks.StopExecutionException引起:您的项目路径包含非ASCII字符。这很可能会导致Windows上的生成失败。请将您的项目移到其他目录。看见http://b.android.com/95744详细信息。可以通过在项目目录中的gradle.properties文件中添加行“android.overridePathCheck=true”来禁用此警告。
原因:在windows环境中,项目路径中若包含非ASCII字符就会导致build失败。
解决方案:
在项目根目录下的gradle.properties文件中添加下面代码:
android.overridePathCheck=true
注意:如果没有gradle.properties文件,那就新增一个
保存后记得重启as工具