Browse Source

fix(android): Broken build due to conditional import of kotlin (#1412)

Thibault Malbranche 4 years ago
parent
commit
7ab2afbab7
No account linked to committer's email address
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      android/build.gradle

+ 8
- 0
android/build.gradle View File

@@ -16,6 +16,14 @@ buildscript {
16 16
       classpath("com.android.tools.build:gradle:3.6.0")
17 17
       classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${getExtOrDefault('kotlinVersion')}")
18 18
     }
19
+  } else {
20
+    repositories {
21
+      jcenter()
22
+    }
23
+
24
+    dependencies {
25
+      classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${getExtOrDefault('kotlinVersion')}")
26
+    }
19 27
   }
20 28
 }
21 29