Skip to content

fix(android): only apply kotlin-android plugin if not already applied - #137

Merged
OS-pedrogustavobilro merged 1 commit into
mainfrom
fix/RMET-5379/kotlin-agp9
Aug 10, 2026
Merged

fix(android): only apply kotlin-android plugin if not already applied#137
OS-pedrogustavobilro merged 1 commit into
mainfrom
fix/RMET-5379/kotlin-agp9

Conversation

@OS-pedrogustavobilro

@OS-pedrogustavobilro OS-pedrogustavobilro commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Guards the explicit apply plugin: 'kotlin-android' behind a check for an existing kotlin extension. Under AGP 9, the Android/Kotlin toolchain can already register the kotlin extension before this plugin's build.gradle runs, so the unconditional apply fails with:

Failed to apply plugin 'kotlin-android'. > Cannot add extension with name 'kotlin', as there is an extension already registered with that name.

@OS-pedrogustavobilro
OS-pedrogustavobilro merged commit e987c5a into main Aug 10, 2026
9 checks passed
@OS-pedrogustavobilro
OS-pedrogustavobilro deleted the fix/RMET-5379/kotlin-agp9 branch August 10, 2026 17:14
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