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