There was an error while loading. Please reload this page.
2 parents b9f62ee + 6b4ca30 commit 4af41beCopy full SHA for 4af41be
1 file changed
android/build.gradle
100755
100644
@@ -23,7 +23,13 @@ if (project == rootProject) {
23
}
24
25
apply plugin: "com.android.library"
26
-apply plugin: "kotlin-android"
+// AGP 9 ships built-in Kotlin support and registers the `kotlin` extension
27
+// itself. Applying the Kotlin plugin on top of it fails configuration with
28
+// "Cannot add extension with name 'kotlin'". Only apply it when nothing has
29
+// registered that extension yet.
30
+if (project.extensions.findByName('kotlin') == null) {
31
+ apply plugin: "kotlin-android"
32
+}
33
34
if (isNewArchitectureEnabled()) {
35
apply plugin: "com.facebook.react"
0 commit comments