gpt4 book ai didi

javascript - 获取 "supportLibVersion", "playServicesVersion"和 "androidMapsUtilsVersion"配置 react-native-maps 中的值

转载 作者:行者123 更新时间:2023-11-30 10:58:52 25 4
gpt4 key购买 nike

我正在安装 react-native-maps。在安装指南中,关于 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"
}
}
...

如何获取 supportLibVersionplayServicesVersionandroidMapsUtilsVersion 值?

最佳答案

一般来说,所有的库都可以在maven 仓库中找到。对于某些人来说,您必须查看具体的库才能获取版本号(此数字是您放入 build.grade 文件中的数字)。通常,属于一个组的所有库都应该支持相同的版本号(否则会出现编译错误,您需要检查具体版本并确保它存在于您需要的库中)。

googlePlayServices版本:
https://mvnrepository.com/artifact/com.google.android.gms/play-services-maps

androidMapsUtilsVersion:
https://mvnrepository.com/artifact/com.google.maps.android/android-maps-utils

支持库版本:
https://mvnrepository.com/search?q=com.android.support
在库中查看。例如https://mvnrepository.com/artifact/com.android.support/appcompat-v7

关于javascript - 获取 "supportLibVersion", "playServicesVersion"和 "androidMapsUtilsVersion"配置 react-native-maps 中的值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58806151/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com