Skip to content

Bump AGP 9.2.0 to 9.2.1 (R8 ClassNotFoundException fix)#334

Merged
bernardladenthin merged 1 commit into
mainfrom
claude/agp-9-2-1-r8-fix-h4t9wk
Jul 11, 2026
Merged

Bump AGP 9.2.0 to 9.2.1 (R8 ClassNotFoundException fix)#334
bernardladenthin merged 1 commit into
mainfrom
claude/agp-9-2-1-r8-fix-h4t9wk

Conversation

@bernardladenthin

Copy link
Copy Markdown
Owner

Summary

  • Bumps com.android.application from 9.2.09.2.1 in both android-llmservice/settings.gradle.kts and .github/android-consumer-test/settings.gradle.kts.
  • AGP 9.2.1 is a patch release fixing java.lang.ClassNotFoundException: Didn't find class "com.android.tools.r8.RecordTag" after upgrading Gradle to 9.x with AGP 9.2.0.
  • This is directly relevant, not hypothetical: both android-llmservice and .github/android-consumer-test run R8 (isMinifyEnabled = true) in their release build type, and CI already runs Gradle 9.4.1 for these jobs (from Upgrade AGP to 9.2.0 and Gradle to 9.4.1; update dependencies #331/Remove org.jetbrains.kotlin.android plugin for AGP 9 built-in Kotlin support #333).
  • Also fixes stale "Kotlin 2.4.0" wording in android-llmservice/README.md left over from the built-in-Kotlin migration in Remove org.jetbrains.kotlin.android plugin for AGP 9 built-in Kotlin support #333 (Kotlin is no longer a separately-applied/versioned plugin — only the Compose compiler plugin is).
  • Verified every other Android dependency pin in this project (Compose BOM, activity-compose, lifecycle-compose, appcompat, androidx.test, kotlinx-coroutines-android, Kotlin 2.4.0) against the authoritative developer.android.com release-notes pages — all are already at the latest stable version.

Test plan

  • CI green on this branch — specifically the R8/isMinifyEnabled release-build steps in package-android-aar and build-android-llmservice
  • Could not build-verify locally (no Android SDK in this sandbox); based on the official AGP 9.2.1 release notes

Related issues / PRs

Follow-up to #331 (AGP 8.7.3 → 9.2.0) and #333 (built-in Kotlin migration).

Checklist

  • I have read CONTRIBUTING.md and CODE_OF_CONDUCT.md
  • My commits follow Conventional Commits
  • No security-sensitive changes

https://claude.ai/code/session_015qu2VUdHXRhp6ndxJGkxri


Generated by Claude Code

AGP 9.2.1 fixes java.lang.ClassNotFoundException on
com.android.tools.r8.RecordTag after upgrading Gradle to 9.x with AGP
9.2.0. Both android-llmservice and .github/android-consumer-test run
R8 (isMinifyEnabled = true) in their release builds, so this is a
real, not hypothetical, regression for this project. Updates the
pinned plugin version in both settings.gradle.kts files and the
matching CLAUDE.md/README.md notes (also fixing stale "Kotlin 2.4.0"
wording left over from the built-in-Kotlin migration).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015qu2VUdHXRhp6ndxJGkxri
@sonarqubecloud

Copy link
Copy Markdown

@bernardladenthin
bernardladenthin merged commit 92bad45 into main Jul 11, 2026
13 of 17 checks passed
@bernardladenthin
bernardladenthin deleted the claude/agp-9-2-1-r8-fix-h4t9wk branch July 11, 2026 13:08
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.

2 participants