docs: cover AGP 9 gradle.properties and build.gradle version declarations - #605
Draft
andredestro wants to merge 1 commit into
Draft
docs: cover AGP 9 gradle.properties and build.gradle version declarations#605andredestro wants to merge 1 commit into
andredestro wants to merge 1 commit into
Conversation
…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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
andredestro
requested review from
ItsChaceD,
OS-pedrogustavobilro,
OS-ruimoreiramendes,
alexgerardojacinto,
jcesarmobile,
markemer and
theproducer
August 28, 2026 11:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 intogradle.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=falsedisables the Kotlin support AGP 9 bundles,android.sdk.defaultTargetSdkToCompileSdkIfUnset=falsestops AGP from inferringtargetSdkVersion).Declare dependency versions in your app's build.gradle, covering the six explicit
defdeclarations 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 migratein ionic-team/capacitor#8584, so the manual steps here mirror what the CLI does.