Skip to content

Fix Android compilation: migrate to AGP 9.0.1#948

Merged
aduermael merged 6 commits into
mainfrom
fix-android-compilation
Mar 1, 2026
Merged

Fix Android compilation: migrate to AGP 9.0.1#948
aduermael merged 6 commits into
mainfrom
fix-android-compilation

Conversation

@gdevillele

Copy link
Copy Markdown
Collaborator

Summary

  • Fix Android build after repo restructure (paths for .env, keystores, CMake REPO_ROOT_DIR)
  • Delete stale root android/ directory left over from restructure
  • Migrate from AGP 8.13.0 to AGP 9.0.1 and Gradle 8.13 to 9.2.1
  • Replace legacy applicationVariants API with androidComponents.onVariants and lazy task registration
  • Remove org.jetbrains.kotlin.android plugin (built into AGP 9)
  • Clean up deprecated Gradle properties and API usage (packagingOptionspackaging, allprojects block, eager task resolution)

Test plan

  • ./gradlew assembleDebug builds successfully

🤖 Generated with Claude Code

gdevillele and others added 6 commits February 22, 2026 13:35
Documents 5 issues preventing Android build after repo restructure:
missing local.properties, missing google-services.json, wrong .env
path, Windows backslash keystore paths, and stale root android dir.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- .env path: ../.env → ../../.env (now resolves to repo root)
- Keystore paths: replaced Windows backslash separators with forward slashes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Removed old build artifacts (.gradle/, .idea/, build/ caches) left
behind after the repo restructure moved android to clients/android/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Replace applicationVariants API with androidComponents.onVariants and
  lazy task registration (tasks.register)
- Remove org.jetbrains.kotlin.android plugin (built into AGP 9)
- Rename packagingOptions to packaging
- Fix eager bundleRelease task resolution in configureEach
- Replace allprojects block with project-local tasks.withType
- Remove deprecated gradle.properties: enableJetifier,
  nonTransitiveRClass, nonFinalResIds
- Bump Kotlin serialization plugin to 2.2.20

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

@aduermael aduermael left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@aduermael
aduermael merged commit 905aacd into main Mar 1, 2026
6 checks passed
@aduermael
aduermael deleted the fix-android-compilation branch March 1, 2026 16:32
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