我正在安装react-native-maps.在第3.1节第Build configuration on Android页的安装指南中,它显示:

buildscript {
    ext {
        buildToolsVersion = "xxx"
        minSdkVersion = xxx
        compileSdkVersion = xxx
        targetSdkVersion = xxx
        supportLibVersion = "xxx"
        playServicesVersion = "xxx" // or set latest version
        androidMapsUtilsVersion = "xxx"
    }
}
...

如何获得supportLibVersionplayServicesVersionandroidMapsUtilsVersion个值?

推荐答案

一般来说,所有库都可以在maven存储库中找到.对于一些人,你必须看到一个具体的库才能获得版本号(this number is the number you put in the build.grade file).通常,属于一个组的所有库都应该支持相同的版本号(否则会出现编译错误,需要判断具体的版本,并确保所需库的版本存在).

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
See within a library. e.g. https://mvnrepository.com/artifact/com.android.support/appcompat-v7

React-native相关问答推荐

如何更改分隔底部标签和屏幕内容的线的 colored颜色 ?React Native Tab导航器

react 本机中的TextInput对齐中的长文本

使用FETCH发送BLOB/文件时为空

ios 中节列表中的scrollToLocation 不起作用.在 Android 上,列表滚动回索引 0,但在 ios 上不会发生同样的情况

如何判断 Detox 正在运行测试?

使用 React Native 下载数据文件以供离线使用

No component found for view with name "ARTShape"

React Native 开发中的/ios/index/DataStore文件夹是什么

React Native 错误找不到模块metro-config/src/defaults/blacklist

如何删除不需要的expo 模块

获取没有地理位置 API React-native 的国家/城市?

Rich ReactNative TextInput

如何在 React 中使用带有钩子的生命周期方法?

创建新的 react-native 元素时出现Unexpected token import错误

我可以从react-native元素中删除 tvOS 吗?

在 React Native ScrollView 中检测滚动结束,对齐页面

如何在 React Native 的 MapView 中设置标记

试图在一个本应是不可变且已被冻结的对象上设置密钥

Android Log

React Native font outline / textShadow