Skip to content

docs: cover AGP 9 gradle.properties and build.gradle version declarations - #605

Draft
andredestro wants to merge 1 commit into
mainfrom
chore/RMET-5370-cap9-agp9-gradle9-migrate
Draft

docs: cover AGP 9 gradle.properties and build.gradle version declarations#605
andredestro wants to merge 1 commit into
mainfrom
chore/RMET-5370-cap9-agp9-gradle9-migrate

Conversation

@andredestro

Copy link
Copy Markdown
Contributor

Description

Two sections added to the Capacitor 9 app upgrade guide (updating/9-0), both under Android:

Clean up gradle.properties, placed right after "Upgrade Android Studio". That section tells readers to run Tools -> AGP Upgrade Assistant, which is precisely what writes the AGP 8 compatibility flags into gradle.properties. The guide recommended the step without saying to clean up after it, and a couple of those flags break a Capacitor 9 build (android.builtInKotlin=false disables the Kotlin support AGP 9 bundles, android.sdk.defaultTargetSdkToCompileSdkIfUnset=false stops AGP from inferring targetSdkVersion).

Declare dependency versions in your app's build.gradle, covering the six explicit def declarations that replace the implicit parent project property lookup. That lookup is deprecated in Gradle 9.6 and becomes an error in Gradle 10. The block matches the one in the Capacitor 9 Android template.

The topics the guide already covered (jcenter(), the ProGuard file rename, targetSdkVersion, built-in Kotlin) are unchanged.

Both changes are also handled automatically by cap migrate in ionic-team/capacitor#8584, so the manual steps here mirror what the CLI does.

…ions

The Android upgrade guide tells readers to run the AGP Upgrade Assistant
but never says to clean up the compatibility flags it writes into
gradle.properties, several of which break a Capacitor 9 build.

Also document the explicit dependency version declarations in
app/build.gradle: the implicit parent project property lookup they replace
is deprecated in Gradle 9.6 and becomes an error in Gradle 10.
@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
capacitor-docs Ready Ready Preview Aug 28, 2026 11:49am

Request Review

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.

1 participant