如何解决"App在使用Google Play服务时遇到了麻烦.请重试." [英] How to resolve "App is having trouble with google play services. please try again."

查看:115
本文介绍了如何解决"App在使用Google Play服务时遇到了麻烦.请重试."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用"react-native":"^ 0.57.4" 在react-native中进行了大约4个月的项目.它包含一个地图视图,我正在使用"react-native-maps":"^ 0.22.1" .

I have been making a project in react-native for about 4 months now using "react-native": "^0.57.4". It consists of a map-view which I am rendering/modifying/developing using "react-native-maps": "^0.22.1".

突然我出现了此错误-应用"在使用Google Play服务时遇到了问题.请重试.

Suddenly I have this error now- "App" is having trouble with google play services. Please try again.

以上错误显示了地图的位置.地图组件为灰色,并且"App"出现了Google Play服务的问题.请再试一次.上面写有消息.

The above error shows up where the map should be. The map component is grey and with the "App" is having trouble with google play services. Please try again. message written on it.

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

I tried running it on an actual device and it runs perfectly fine. So that means its an emulator issue. Can anyone please share any insights or solution as to how to fix this on the emulator?

我正在使用Nexus 5P&使用Android 9.0 * 86的6P.

I am using Nexus 5P & 6P with android 9.0 *86.

推荐答案

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

I was having the same problem today, the latest version of the com.google.android.gms.play-services-maps is the issue, downgrading to 16.0.0 fixed it.

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
}

希望有帮助.

这篇关于如何解决"App在使用Google Play服务时遇到了麻烦.请重试."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆