您的位置:首页 > 移动开发 > Android开发

Android - error - Your project path contains non-ASCII characters. This will most likely ...

2020-08-10 18:18 2401 查看

出错信息:

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

大概翻译为:项目路径包含非ASCII字符。这很可能会导致Windows上的生成失败。请将项目移到其他目录。

解决问题:

  • 方法一(建议使用):

通俗的说:项目路径含中文符号或中文名字
规范路径:使用英文数字下划线等命名

  • 方法二(不建议):
    不过呢,不改路径名也不是不行的,它也给出了提示(在错误信息中有这么一句话)
    This warning can be disabled by adding the line "android.overridePathCheck=true" to gradle.

在这加上这句代码就可以了(如图)(强烈不建议用这种方法

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐