如何解决"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
}
希望有帮助.