如何解决“应用程序在使用 Google Play 服务时遇到问题。请重试。”

2024-01-31

我已经用react-native做一个项目大约4个月了,现在使用"react-native": "^0.57.4"。它由我正在渲染/修改/开发的地图视图组成"react-native-maps": "^0.22.1".

突然我现在遇到了这个错误-"App" is having trouble with google play services. Please try again.

上述错误显示了地图应该在的位置。地图组件是灰色的,并且带有"App" is having trouble with google play services. Please try again.上面写着消息。

我尝试在实际设备上运行它,它运行得很好。所以这意味着它是一个模拟器问题。任何人都可以分享有关如何在模拟器上解决此问题的任何见解或解决方案吗?

我正在使用 Nexus 5P 和 6P 以及 android 9.0 *86。


我今天遇到了同样的问题,最新版本的 com.google.android.gms.play-services-maps 是问题,降级到 16.0.0 修复了它。

Inside the app/build.gradle

dependencies {
   ...
 compile "com.google.android.gms:play-services-base:+" <---Remove this
 compile "com.google.android.gms:play-services-maps:+" <---Remove this
 compile "com.google.android.gms:play-services-base:16.0.1" <---Add this
 compile "com.google.android.gms:play-services-maps:16.0.0" <---Add this
}

希望能帮助到你。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何解决“应用程序在使用 Google Play 服务时遇到问题。请重试。” 的相关文章

随机推荐