AndroidStudio导入项目报错Your project path contains non-ASCII characters
程序员文章站
2022-04-17 10:56:18
...
因为想在原有的版本上,开发一个功能更全的版本,所以将项目代码拷贝到另一个目录下:/深入版/demo/,但是当导入项目时,却报错了。错误如下:
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.
经过询问老司机同事,最后的原因是:中文路径,“深入版”引起的。哎,万万没想到,以后写代码还是要注重规范,尽量不用中文,避免不必要的错误。
解决办法:导入的项目路径中不要包含中文。