ERROR: DexGuard Gradle plugin: Android Gradle plugin version is not supported. (3.5.0), supported versions include [2.3.0:3.4.*]
ERROR: DexGuard Gradle plugin: Android Gradle plugin version is not supported. (3.5.0), supported versions include [2.3.0:3.4.*]
我最近在创建发布版本时遇到错误 我更新了 android studio 新版本 3.5 之后出现此错误并且构建失败但也创建了构建所以任何人都已经遭受并修复它所以请告诉我一件事是我在更新 gradle 版本时实施了 dexgaurd 所以它也不允许 dex gaurd 插件...
我已经更改了 gradle 构建工具版本和清理项目并创建项目但无法正常工作
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.google.gms:google-services:4.3.0'
您使用的 DexGuard gradle 插件无法使用
classpath 'com.android.tools.build:gradle:3.5.0'
只需使用:
classpath 'com.android.tools.build:gradle:3.4.2'
对于 dexguard 8.5.09,Android Gradle 插件 3.5.0 可以支持 DexGuard 插件。
我们不需要将 Android Gradle 插件版本从 3.5.0 降级到 3.4.0。
我通过以下方式修复它:
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'
我已经更改了 gradle 构建工具版本和清理项目并创建项目但无法正常工作
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.google.gms:google-services:4.3.0'
您使用的 DexGuard gradle 插件无法使用
classpath 'com.android.tools.build:gradle:3.5.0'
只需使用:
classpath 'com.android.tools.build:gradle:3.4.2'
对于 dexguard 8.5.09,Android Gradle 插件 3.5.0 可以支持 DexGuard 插件。 我们不需要将 Android Gradle 插件版本从 3.5.0 降级到 3.4.0。
我通过以下方式修复它:
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'