Skip to content

fix(build): upgrade AGP to 9.2.1 and compileSdk to 37#31

Merged
GeiserX merged 2 commits into
mainfrom
fix/upgrade-agp9-compilesdk37
Jun 7, 2026
Merged

fix(build): upgrade AGP to 9.2.1 and compileSdk to 37#31
GeiserX merged 2 commits into
mainfrom
fix/upgrade-agp9-compilesdk37

Conversation

@GeiserX

@GeiserX GeiserX commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Problem

CI was failing at ./gradlew jacocoTestReport on :app:checkDebugAarMetadata:

Dependency 'androidx.core:core:1.19.0' requires libraries and applications that depend on it to compile against version 37 or later of the Android APIs (compileSdk >= 37).
Dependency 'androidx.core:core:1.19.0' requires Android Gradle plugin 9.1.0 or higher.

A Dependabot deps group PR bumped androidx.core / core-ktx to 1.19.0, but the project's compileSdk and AGP were too low to support it.

Fix (durable upgrade)

  • AGP 8.13.2 -> 9.2.1 (latest stable; satisfies the >= 9.1.0 requirement)
  • Gradle wrapper 8.14.5 -> 9.5.1 (AGP 9.x requires Gradle 9.x), with distributionSha256Sum pinned
  • compileSdk 36 -> 37
  • targetSdk 35 -> 36

Kept androidx.core at 1.19.0 rather than pinning it back, so the toolchain stays current.

Verification

  • Relies on CI (self-hosted Temurin 17 + Android SDK) to run ./gradlew jacocoTestReport.

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.
@coderabbitai

coderabbitai Bot commented Jun 7, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@GeiserX, we couldn't start this review because you've reached your PR review rate limit.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d4bd0792-38c1-4320-9c5e-a6390c1608f4

📥 Commits

Reviewing files that changed from the base of the PR and between 0b80abb and e60f98c.

📒 Files selected for processing (4)
  • app/build.gradle.kts
  • build.gradle.kts
  • gradle/libs.versions.toml
  • gradle/wrapper/gradle-wrapper.properties
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/upgrade-agp9-compilesdk37

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.
@GeiserX GeiserX merged commit f1a1a78 into main Jun 7, 2026
3 checks passed
@GeiserX GeiserX deleted the fix/upgrade-agp9-compilesdk37 branch June 7, 2026 20:12
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