Two errors occurred when I opened the project today:
1、org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin [id ‘com.android.internal.application’]
2、org.gradle.api.tasks.StopExecutionException: 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.
This is because the outer folder of my project has Chinese characters, so the above error was reported.
The solution is as follows:
set in the gradle.properties file:
android.overridePathCheck=true
After the configuration is completed, just refresh it.