记录一个升级AndroidStudio到3.0版本的编译错误
场景:项目需要引入一个aar包,集成完成以后编译失败,刚开始还以为是aar包内资源文件有问题,后来才发现问题的根本,在此记录一下。
错误信息:
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.
<ahref="openFile:1.5\prec\app\build.gradle">Open File</a>
解决办法:gradle.properties 文件中添加 android.enableAapt2=false
参考:https://stackoverflow.com/questions/46910532/android-studio-3-0-rc-2