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
即在项目的gradle.properties中添加:
android.overridePathCheck=true
Android Gradle 升级到4.0以上之后,The option ‘com.android.build.gradle.overridePathCheck’ is deprecated.
解决方案:
com.android.build.gradle.overridePathCheck=true 修改为: android.overridePathCheck=true
保存并退出,然后打开AS,gradle sync一下即可。
mac下应该也是一样的,这个错误的原因时,高版本的gradle删除了com.android.build.gradle.overridePathCheck这个方法,替换成了android.overridePathCheck。
原文链接: https://blog.youkuaiyun.com/xiayuandongcn/article/details/106518704 .
原文链接: https://blog.youkuaiyun.com/qq_42583263/article/details/106980015.