Commit 5305e38
authored
fix(android): AGP 9.0 no longer supports
Replace getDefaultProguardFile('proguard-android.txt') with getDefaultProguardFile('proguard-android-optimize.txt') in android/build.gradle.
proguard-android.txt is no longer supported in AGP 9+ since it includes -dontoptimize, which prevents R8 from performing optimizations. This causes a build failure for projects using Android Gradle Plugin 9.x.
See https://capawesome.io/blog/how-to-fix-capacitor-plugin-build-errors-with-agp-9/proguard-android.txt (#684)1 parent 3ed8a8b commit 5305e38
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments