通用版谷歌播放服务

问题描述 投票:0回答:2

我想在我的react-native应用程序中使用react-native-maps软件包,这个软件包需要最新版本的google play服务才能正常工作。我想在某个地方主持一个谷歌播放服务的APK,如果他们的谷歌播放服务的版本已经过时,请推荐用户下载它。我想知道是否有与所有兼容的谷歌播放服务的通用版本Android设备?

android react-native google-play-services apk react-native-maps
2个回答
0
投票

我认为(030)版本的google play服务适用于每个版本。


0
投票

好吧,您正在尝试使用最新/更新版本的google-play-services。在react-native-maps也许他们正在使用更新的。或者我假设他们使用的是过时的。如果您想使用更新的第一个修复程序,您想要使用哪个,请执行以下操作:跳过react-native-maps google-play-services版本并使用您自己定义的版本。

 compile (project(':react-native-maps')) {
        // exclude version their version
        exclude group: 'com.google.android.gms', module: 'play-services-base'
        exclude group: 'com.google.android.gms', module: 'play-services-maps'
    }
//user your own 
compile 'com.google.android.gms:play-services-base:X.x.x'
compile 'com.google.android.gms:play-services-maps:X.x.x'

如果您有任何疑问可以问我和Gradle依赖,您可以从here了解更多信息

© www.soinside.com 2019 - 2024. All rights reserved.