Skip to content

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

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

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 d7024ed into main Aug 10, 2026
8 checks passed
@OS-pedrogustavobilro
OS-pedrogustavobilro deleted the fix/RMET-5379/kotlin-agp9 branch August 10, 2026 17:17
capacitor-bot pushed a commit that referenced this pull request Aug 13, 2026
## [8.2.2](v8.2.1...v8.2.2) (2026-08-13)

### Bug Fixes

* **android:** only apply kotlin-android plugin if not already applied ([#97](#97)) ([d7024ed](d7024ed))
capacitor-bot pushed a commit that referenced this pull request Aug 13, 2026
# [9.0.0-next.2](v9.0.0-next.1...v9.0.0-next.2) (2026-08-13)

### Bug Fixes

* **android:** only apply kotlin-android plugin if not already applied ([#97](#97)) ([d7024ed](d7024ed))
* improve location retrieval reliability ([f349a91](f349a91))
* **ios:** Correct error when location services are off ([#94](#94)) ([d265bcb](d265bcb))
renovate Bot added a commit to cigaleapp/cigale that referenced this pull request Aug 24, 2026
##### [v8.2.2](https://github.com/ionic-team/capacitor-geolocation/blob/HEAD/CHANGELOG.md#822-2026-08-13)

##### Bug Fixes

- **android:** only apply kotlin-android plugin if not already applied ([#97](ionic-team/capacitor-geolocation#97)) ([d7024ed](ionic-team/capacitor-geolocation@d7024ed))
##### [v8.2.1](https://github.com/ionic-team/capacitor-geolocation/blob/HEAD/CHANGELOG.md#821-2026-08-06)

##### Bug Fixes

- **android:** Only request permissions that are defined in the manifest ([#85](ionic-team/capacitor-geolocation#85)) ([c9c4c84](ionic-team/capacitor-geolocation@c9c4c84))
- **android:** Return error when user rejects request to turn on location with `enableLocationManagerFallback=true` ([#86](ionic-team/capacitor-geolocation#86)) ([1a2504a](ionic-team/capacitor-geolocation@1a2504a))
- improve location retrieval reliability ([f349a91](ionic-team/capacitor-geolocation@f349a91))
- **ios:** Correct error when location services are off ([#94](ionic-team/capacitor-geolocation#94)) ([d265bcb](ionic-team/capacitor-geolocation@d265bcb))
renovate Bot added a commit to cigaleapp/cigale that referenced this pull request Aug 24, 2026
##### [v8.2.2](https://github.com/ionic-team/capacitor-geolocation/blob/HEAD/CHANGELOG.md#822-2026-08-13)

##### Bug Fixes

- **android:** only apply kotlin-android plugin if not already applied ([#97](ionic-team/capacitor-geolocation#97)) ([d7024ed](ionic-team/capacitor-geolocation@d7024ed))
##### [v8.2.1](https://github.com/ionic-team/capacitor-geolocation/blob/HEAD/CHANGELOG.md#821-2026-08-06)

##### Bug Fixes

- **android:** Only request permissions that are defined in the manifest ([#85](ionic-team/capacitor-geolocation#85)) ([c9c4c84](ionic-team/capacitor-geolocation@c9c4c84))
- **android:** Return error when user rejects request to turn on location with `enableLocationManagerFallback=true` ([#86](ionic-team/capacitor-geolocation#86)) ([1a2504a](ionic-team/capacitor-geolocation@1a2504a))
- improve location retrieval reliability ([f349a91](ionic-team/capacitor-geolocation@f349a91))
- **ios:** Correct error when location services are off ([#94](ionic-team/capacitor-geolocation#94)) ([d265bcb](ionic-team/capacitor-geolocation@d265bcb))
renovate Bot added a commit to cigaleapp/cigale that referenced this pull request Aug 24, 2026
##### [v8.2.2](https://github.com/ionic-team/capacitor-geolocation/blob/HEAD/CHANGELOG.md#822-2026-08-13)

##### Bug Fixes

- **android:** only apply kotlin-android plugin if not already applied ([#97](ionic-team/capacitor-geolocation#97)) ([d7024ed](ionic-team/capacitor-geolocation@d7024ed))
##### [v8.2.1](https://github.com/ionic-team/capacitor-geolocation/blob/HEAD/CHANGELOG.md#821-2026-08-06)

##### Bug Fixes

- **android:** Only request permissions that are defined in the manifest ([#85](ionic-team/capacitor-geolocation#85)) ([c9c4c84](ionic-team/capacitor-geolocation@c9c4c84))
- **android:** Return error when user rejects request to turn on location with `enableLocationManagerFallback=true` ([#86](ionic-team/capacitor-geolocation#86)) ([1a2504a](ionic-team/capacitor-geolocation@1a2504a))
- improve location retrieval reliability ([f349a91](ionic-team/capacitor-geolocation@f349a91))
- **ios:** Correct error when location services are off ([#94](ionic-team/capacitor-geolocation#94)) ([d265bcb](ionic-team/capacitor-geolocation@d265bcb))
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