Commit 680e331c6acf0cc62b4474209e712976c6bb534a
1 parent
32bbca85
回退到buildtoolversion 29
Showing
2 changed files
with
6 additions
and
8 deletions
lib/android/build.gradle
... | ... | @@ -6,24 +6,22 @@ def getExt(prop, fallback) { |
6 | 6 | } |
7 | 7 | |
8 | 8 | buildscript { |
9 | - ext.kotlin_version = '1.7.20' | |
10 | - | |
11 | 9 | repositories { |
12 | 10 | mavenCentral() |
13 | 11 | } |
14 | 12 | |
15 | 13 | dependencies { |
16 | - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | |
14 | + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin: ${getExt('kotlinVersion', '1.6.21')}" | |
17 | 15 | } |
18 | 16 | } |
19 | 17 | |
20 | 18 | android { |
21 | - compileSdkVersion getExt('compileSdkVersion', 30) | |
22 | - buildToolsVersion getExt('buildToolsVersion', '30.0.0') | |
19 | + compileSdkVersion getExt('compileSdkVersion', 29) | |
20 | + buildToolsVersion getExt('buildToolsVersion', '29.0.3') | |
23 | 21 | |
24 | 22 | defaultConfig { |
25 | 23 | minSdkVersion getExt('minSdkVersion', 21) |
26 | - targetSdkVersion getExt('targetSdkVersion', 30) | |
24 | + targetSdkVersion getExt('targetSdkVersion', 29) | |
27 | 25 | } |
28 | 26 | |
29 | 27 | kotlinOptions { |
... | ... | @@ -33,7 +31,7 @@ android { |
33 | 31 | |
34 | 32 | dependencies { |
35 | 33 | api 'com.facebook.react:react-native:+' |
36 | - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | |
34 | + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getExt('kotlinVersion', '1.6.21')}" | |
37 | 35 | implementation 'com.amap.api:3dmap:9.5.0' |
38 | 36 | implementation 'com.amap.api:search:9.4.5' |
39 | 37 | } | ... | ... |