android studio 报错 org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin
程序员文章站
2022-04-28 18:59:16
...
出现两条报错如:Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin [id 'com.android.internal.application']
和Caused by: 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.
解决:
在项目中的gradle.properties添加一句话:
android.overridePathCheck=true
然后刷新即可
推荐阅读
-
android studio 编译项目报错Gradle sync failed: Illegal char <:> at index 37:
-
5张图片解决android studio报错:Failed to resolve: com.android.support:appcompat-v7:29
-
Android:Failed to apply plugin [id ‘com.android.application‘]报错问题
-
Android Studio之提示Gradle sync failed: Plugin with id 'com.novoda.bintray-release' not found.
-
Android Studio 报错failed to create jvm error code -4的解决方法
-
android studio 报错 org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin
-
android studio 编译项目报错Gradle sync failed: Illegal char <:> at index 37:
-
5张图片解决android studio报错:Failed to resolve: com.android.support:appcompat-v7:29
-
Android:Failed to apply plugin [id ‘com.android.application‘]报错问题