Skip to content

build(deps): bump androidGradlePlugin from 8.13.2 to 9.3.1 - #714

Merged
david-allison merged 7 commits into
ankidroid:mainfrom
david-allison:agp-9
Aug 10, 2026
Merged

build(deps): bump androidGradlePlugin from 8.13.2 to 9.3.1 #714
david-allison merged 7 commits into
ankidroid:mainfrom
david-allison:agp-9

Conversation

@david-allison

Copy link
Copy Markdown
Member

Replace legacy 'apply plugin:' + buildscript classpath wiring with `plugins {}`.

Prep for AGP 9

Assisted-by: Claude Fable 5
Removing it means one less Kotlin task-type reference to migrate
for AGP 9

Assisted-by: Claude Fable 5
AGP 9 requires Kotlin 2.3.0+ (it is a transitive dependency of the
plugin), so this must land before the AGP bump. Matches the Kotlin
version Anki-Android used for its AGP 9 migration.

Assisted-by: Claude Fable 5
AGP 9's new DSL drops the following from library modules:

* `targetSdk`
* `versionCode`
* `versionName`

Assisted-by: Claude Fable 5
Renamed in AGP 8, removed in AGP 9

Assisted-by: Claude Fable 5
In AGP 9, bundleLocalLintAar contains no jniLibs, so it
would fail our check, which was intended to be production-only

Assisted-by: Claude Fable 5
AGP 9's bundling of Kotlin required a few changes:

- stop applying kotlin-android in Android modules; keep KGP
   for the JVM-only rsdroid-testing module
- drop `jvmTarget`: defaulted to 11 by the built-in Kotlin

See also: Anki-Android PR 19423

Assisted-by: Claude Fable 5
@david-allison
david-allison added this pull request to the merge queue Aug 10, 2026
Merged via the queue into ankidroid:main with commit 5c6e657 Aug 10, 2026
11 checks passed
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