Mah*_*our 14 javascript google-play-services react-native react-native-android react-native-maps
我正在安装react-native-maps
. 在安装指南中,在第 3.1 节的Android上的构建配置中,它显示:
buildscript {
ext {
buildToolsVersion = "xxx"
minSdkVersion = xxx
compileSdkVersion = xxx
targetSdkVersion = xxx
supportLibVersion = "xxx"
playServicesVersion = "xxx" // or set latest version
androidMapsUtilsVersion = "xxx"
}
}
...
Run Code Online (Sandbox Code Playgroud)
我怎样才能得到 supportLibVersion
,playServicesVersion
和androidMapsUtilsVersion
值?
man*_*gei 25
通常,所有库都可以在 maven 存储库中找到。对于一些你必须看到一个具体的库来获取版本号(这个数字是你放在 build.grade 文件中的数字)。通常,属于一个组的所有库都应该支持相同的版本号(否则会出现编译错误,您需要检查具体版本并确保它存在于您需要的库中)。
googlePlayServicesVersion:
https://mvnrepository.com/artifact/com.google.android.gms/play-services-maps
androidMapsUtilsVersion:
https://mvnrepository.com/artifact/com.google.maps.android/android-maps-utils
supportLibVersion:
https://mvnrepository.com/search?q=com.android.support
在库中查看。例如https://mvnrepository.com/artifact/com.android.support/appcompat-v7
小智 16
尝试这个:
ext {
compileSdkVersion = 28
targetSdkVersion = 28
buildToolsVersion = "28.0.3"
googlePlayServicesVersion = "17.0.0"
supportLibVersion = "27.1.0"
androidMapsUtilsVersion = "0.5+"
minSdkVersion = 16
}
Run Code Online (Sandbox Code Playgroud)