Repository navigation
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Migrate the app module to built-in Kotlin for AGP 9.
With AGP 9.x, built-in Kotlin is enabled by default and replaces the
org.jetbrains.kotlin.androidplugin.app/build.gradle.ktsstill appliesorg.jetbrains.kotlin.android(line 3) and configureskotlinOptions(line 84).gradle.propertiesdoes not opt out. The Kotlin Android plugin fails during plugin application, so the app project does not configure and the build fails. Updating the Gradle wrapper does not resolve this failure.Required change:
id("org.jetbrains.kotlin.android")fromapp/build.gradle.kts. Remove the rootbuild.gradle.ktsdeclaration as well.kotlinOptions { jvmTarget = "17" }block to the built-in Kotlin DSL. Keep the JVM target at 17.To keep the build working until the migration is complete, opt out of both features. These flags are removed in AGP 10.0.
Temporary opt-out in gradle.properties
Update the Gradle wrapper to 9.6.0 with the AGP 9.5.2 upgrade.
gradle/wrapper/gradle-wrapper.propertiespins Gradle 8.7. AGP 9.5 requires Gradle 9.6.0 as its minimum version. With the current wrapper, configuration fails, so builds and tests are blocked.Run this command to update the wrapper:
The command updates
distributionUrlanddistributionSha256Sumtogether. Do not change only the URL, because the checksum must match the Gradle 9.6.0 archive.