Skip to content

Comments

fix: AGP 9.0 no longer supporting proguard-android.txt#2468

Merged
OS-pedrogustavobilro merged 2 commits intoionic-team:mainfrom
terencehonles:fix-agp-9-compatibility
Feb 3, 2026
Merged

fix: AGP 9.0 no longer supporting proguard-android.txt#2468
OS-pedrogustavobilro merged 2 commits intoionic-team:mainfrom
terencehonles:fix-agp-9-compatibility

Conversation

@terencehonles
Copy link
Contributor

This change replaces the default proguard file proguard-android.txt with proguard-android-optimize.txt which allows proguard optimizations.

Alternatively, AGP 9 compatibility can be achieved by opting out of the change with android.r8.globalOptionsInConsumerRules.disallowed=false

This change replaces the default proguard file `proguard-android.txt`
with `proguard-android-optimize.txt` which allows proguard
optimizations.
@theproducer theproducer self-assigned this Jan 20, 2026
@jcesarmobile jcesarmobile changed the title fix AGP 9.0 no longer supporting proguard-android.txt fix: AGP 9.0 no longer supporting proguard-android.txt Jan 27, 2026
@terencehonles
Copy link
Contributor Author

terencehonles commented Jan 28, 2026

Since the core package PR has been accepted and merged I've opened PRs (linked above) for each of the split out repositories to make the same changes. These will all need to be released to unblock AGP 9.

@jordanorc
Copy link

Hi @OS-pedrogustavobilro! Thanks for merging this fix. I’m trying to plan my Android build and I was wondering if there is any expected release version or timeline where this change will be published. Could you please share if there’s a scheduled release including this fix? Thanks!

@OS-pedrogustavobilro
Copy link
Contributor

Hey @jordanorc I don't have an exact date to share, I reckon some time this week this fix should be released.

However, as mentioned in the docs (updated after this PR was opened), you don't need to update to AGP 9; Capacitor 8 is built with AGP 8.13, we recommend updating to that specific version that matches Capacitor 8 (unless you specifically need something from AGP 9), otherwise, you could run into other build issues (e.g. with community plugins). And if you use 8.13, this bug/fix shouldn't impact you.

@jordanorc
Copy link

Hi @OS-pedrogustavobilro, thanks for getting back to me! I ended up missing the note in the documentation about keeping the AGP at version 8.13.0 — my mistake 😅
I’ll test it by keeping the version pinned to 8.13.0. Thanks!

OS-pedrogustavobilro added a commit that referenced this pull request Feb 12, 2026
Co-authored-by: Pedro Bilro <pedro.gustavo.bilro@outsystems.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants