fix(build): upgrade AGP to 9.2.1 and compileSdk to 37#31
Conversation
androidx.core 1.19.0 requires compileSdk >= 37 and AGP >= 9.1.0, which broke CI on :app:checkDebugAarMetadata. Bump AGP 8.13.2 -> 9.2.1, the Gradle wrapper 8.14.5 -> 9.5.1 (AGP 9.x needs Gradle 9.x), compileSdk 36 -> 37 and targetSdk 35 -> 36 to satisfy the dependency requirements.
|
Warning Review limit reached
More reviews will be available in 52 minutes and 32 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
AGP 9.0 enables built-in Kotlin and rejects the standalone org.jetbrains.kotlin.android plugin. Remove the kotlin.android plugin (and its catalog alias) from the root and app build files; Kotlin compilation is now provided by the Android plugin. The compose and serialization compiler plugins are kept as they remain companion KGP plugins.
Problem
CI was failing at
./gradlew jacocoTestReporton:app:checkDebugAarMetadata:A Dependabot
depsgroup PR bumpedandroidx.core/core-ktxto 1.19.0, but the project'scompileSdkand AGP were too low to support it.Fix (durable upgrade)
8.13.2->9.2.1(latest stable; satisfies the >= 9.1.0 requirement)8.14.5->9.5.1(AGP 9.x requires Gradle 9.x), withdistributionSha256SumpinnedcompileSdk36->37targetSdk35->36Kept
androidx.coreat 1.19.0 rather than pinning it back, so the toolchain stays current.Verification
./gradlew jacocoTestReport.