打开程序时发生 build failed:
解决办法:
- 方法一,按照错误提示解决,将 ‘android.overridePathCheck=true’ 添加到gradle.properties 配置文件里
- What went wrong:
An exception occurred applying plugin request [id: ‘com.android.application’]
Failed to apply plugin [id ‘com.android.internal.application’]
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.
- 方法二,更改项目目录 project path,即将项目放到一个路径上不包含汉字的文件夹里