瀏覽代碼

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

Thibault Malbranche 4 年之前
父節點
當前提交
7ab2afbab7
No account linked to committer's email address
共有 1 個檔案被更改,包括 8 行新增0 行删除
  1. 8
    0
      android/build.gradle

+ 8
- 0
android/build.gradle 查看文件

@@ -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