Skip to content

chore(android)!: bump AGP to 9.2.0 and Gradle to 9.5.1#8498

Open
OS-ruimoreiramendes wants to merge 3 commits into
nextfrom
chore/RMET-4709/agp-gradle-9
Open

chore(android)!: bump AGP to 9.2.0 and Gradle to 9.5.1#8498
OS-ruimoreiramendes wants to merge 3 commits into
nextfrom
chore/RMET-4709/agp-gradle-9

Conversation

@OS-ruimoreiramendes
Copy link
Copy Markdown
Contributor

@OS-ruimoreiramendes OS-ruimoreiramendes commented Jun 3, 2026

Description

Bump the Android Gradle Plugin from 8.13.0 to 9.2.0 and the Gradle wrapper from 8.14.3 to 9.5.1

Change Type

  • Fix
  • Feature
  • Refactor
  • Breaking Change
  • Documentation
  • Other (CI, chores, etc.)

Rationale / Problems Fixed

Keep Capacitor 9 on the latest stable toolchain.

Refs: RMET-4709

Tests or Reproductions

  • npm run build in cli/: TypeScript compiles
  • npm run verify in android/: BUILD SUCCESSFUL
  • Android library assembleRelease and unit tests: BUILD SUCCESSFUL
  • CLI unit test suite passes
  • Generated a fresh app via local CLI (npx cap add android) and built it: BUILD SUCCESSFUL with AGP 9.2.0 / Gradle 9.5.1

Platforms Affected

  • Android
  • iOS
  • Web

Notes / Comments

-b flag replacement

Gradle 9 removed -b/--build-file (see upgrade guide). The verify script in android/package.json and scripts/publish-android.sh now use qualified task paths (:capacitor-android:<task>) to keep the same scope.

Copy link
Copy Markdown
Member

@jcesarmobile jcesarmobile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

latest plugin is 9.2.1

the gradle-wrapper.jar, gradlew and gradle.bat files also need to be updated to gradle 9.5.1, not just the properties file

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.

2 participants