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

标签 javascript google-play-services react-native react-native-maps

我正在安装 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/

相关文章:

android - 如何在 iOS 中使用 EXPO/react-native 实现 RTL

ios - alignItems 无法正常工作。 React Native flexbox Yaga

react-native - 在 AsyncStorage 中 setItem 的正确方法

javascript - requirejs 依赖项加载顺序不起作用

android - 如何解决版本冲突的依赖问题?

android - 我想添加实现 'com.google.android.gms:play-services-maps:17.0.0' ,但显示消息错误

Android Google Play 服务为 blogger api 返回无效 token

javascript - Cytoscape.js 无法使用 cy.nodes().forEach 获得初始位置

javascript - Angular JS 文件上传和 Laravel 后端

javascript - 如何控制客户端网站 CSS 上小部件的外观