[英]ERROR: DexGuard Gradle plugin: Android Gradle plugin version is not supported. (3.5.0), supported versions include [2.3.0:3.4.*]
i am getting an error while create released build recently i have updated android studio new version 3.5 after that this error is appearing and build failed but created build too so any one already suffered and fixed it so please tell me one more thing is that i have implemented dexgaurd when i update gradle version so it does not allow dex gaurd plugin too...我最近在创建发布的构建时遇到错误我更新了 android studio 新版本 3.5 之后出现此错误并且构建失败但也创建了构建所以任何人已经遭受并修复它所以请告诉我另外一件事是我有当我更新 gradle 版本时实现了 dexgaurd,所以它也不允许 dex gaurd 插件......
i have changed the gradle build tool version version and clean project and make project but not working我已经更改了 gradle 构建工具版本和清理项目并创建项目但不工作
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.google.gms:google-services:4.3.0'
With the DexGuard gradle plugin that you are using, you can't use使用您正在使用的 DexGuard gradle 插件,您无法使用
classpath 'com.android.tools.build:gradle:3.5.0'
Just use:只需使用:
classpath 'com.android.tools.build:gradle:3.4.2'
For dexguard 8.5.09, DexGuard plugin could be supported by Android Gradle plugin 3.5.0.对于 dexguard 8.5.09,Android Gradle 插件 3.5.0 可以支持 DexGuard 插件。 We do not need to downgrade the Android Gradle plugin version from 3.5.0 to 3.4.0.我们不需要将 Android Gradle 插件版本从 3.5.0 降级到 3.4.0。
I fix it by the following:我通过以下方式修复它:
Fix the sync error
diff --git a/build.gradle b/build.gradle
index 1df386c..9273764 100644
--- a/build.gradle
+++ b/build.gradle
@@ -27,7 +27,6 @@ buildscript {
classpath "org.jacoco:org.jacoco.core:$jacoco_version"
classpath 'com.google.gms:google-services:4.3.3'
classpath "com.github.jengelman.gradle.plugins:shadow:$shadow_version"
- classpath ":dexguard:"
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.6'
classpath 'com.guardsquare:dexguard:8.5.09'
classpath 'com.guardsquare:dexguard-annotations:8.5.09'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.