Skip to content

fix(android): only apply Kotlin plugin if not using built-in - #2830

Merged
Tommy Nguyen (tido64) merged 1 commit into
trunkfrom
tido/android/conditional-kotlin-plugin
Jun 23, 2026
Merged

fix(android): only apply Kotlin plugin if not using built-in#2830
Tommy Nguyen (tido64) merged 1 commit into
trunkfrom
tido/android/conditional-kotlin-plugin

Conversation

@tido64

@tido64 Tommy Nguyen (tido64) commented Jun 23, 2026

Copy link
Copy Markdown
Member

Description

Nightly builds are failing with the following error:

An exception occurred applying plugin request [id: 'org.jetbrains.kotlin.android']
> Failed to apply plugin 'org.jetbrains.kotlin.android'.
   > Cannot add extension with name 'kotlin', as there is an extension already registered with that name.

-- https://github.com/microsoft/react-native-test-app/actions/runs/28003974492/job/82881903173

Platforms affected

  • Android
  • iOS
  • macOS
  • visionOS
  • Windows

Test plan

Build will still fail but on react-native-safe-area-context instead:

cd packages/app
node --run set-react-version -- nightly
yarn
cd example
yarn android

@tido64
Tommy Nguyen (tido64) force-pushed the tido/android/conditional-kotlin-plugin branch from 99b267c to fab1d02 Compare June 23, 2026 13:20
@tido64
Tommy Nguyen (tido64) merged commit 176c5ec into trunk Jun 23, 2026
24 checks passed
@tido64
Tommy Nguyen (tido64) deleted the tido/android/conditional-kotlin-plugin branch June 23, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform: Android This affects Android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants