我正在安装react-native-maps
。在安装指南中,Android 上的构建配置 https://github.com/react-native-community/react-native-maps/blob/master/docs/installation.md#build-configuration-on-android在第 3.1 节中,它显示:
buildscript {
ext {
buildToolsVersion = "xxx"
minSdkVersion = xxx
compileSdkVersion = xxx
targetSdkVersion = xxx
supportLibVersion = "xxx"
playServicesVersion = "xxx" // or set latest version
androidMapsUtilsVersion = "xxx"
}
}
...
我怎样才能得到supportLibVersion
, playServicesVersion
and androidMapsUtilsVersion
values?
一般来说,所有的库都可以在maven仓库中找到。对于某些人来说,您必须查看具体的库才能获取版本号(这个数字是您放入 build.gradle 文件中的数字)。通常,属于一个组的所有库都应该支持相同的版本号(否则您会收到编译错误,并且需要检查具体版本并确保它存在于您需要的库中)。
googlePlayServices版本:
https://mvnrepository.com/artifact/com.google.android.gms/play-services-maps https://mvnrepository.com/artifact/com.google.android.gms/play-services-maps
androidMapsUtils版本:
https://mvnrepository.com/artifact/com.google.maps.android/android-maps-utils https://mvnrepository.com/artifact/com.google.maps.android/android-maps-utils
支持库版本:
https://mvnrepository.com/search?q=com.android.support https://mvnrepository.com/search?q=com.android.support
在图书馆内查看。例如https://mvnrepository.com/artifact/com.android.support/appcompat-v7 https://mvnrepository.com/artifact/com.android.support/appcompat-v7
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)