[英]Why does my app closes when iniating map from Xamarin.Forms.GoogleMaps?
The app only has a map and a pin, when the app starts takes like 2 seconds in the splash screens and then closes.该应用程序只有一个 map 和一个引脚,当应用程序启动时,在启动画面中大约需要 2 秒,然后关闭。
I've tried adding the same map in an another crossplatform app that's working and happens the same, when I tap to go to the page that only has the map it gets closed.当我点击 go 到只有 map 的页面时,我尝试在另一个正在运行并且发生相同的跨平台应用程序中添加相同的 map。
There are no exceptions or errors whatsoever.没有任何异常或错误。
Using nuget package Xamarin.Forms.GoogleMaps 3.3.0使用 nuget package Xamarin.Z6450242531912981C6683CAE88A3.A谷歌。
Here's my code: https://github.com/hernandeztechy/TestGoogleMap这是我的代码: https://github.com/hernandeztechy/TestGoogleMap
There are some exceptions in your APP but you can not find so it is closed.你的APP里有一些异常但是你找不到所以它被关闭了。
try to find them you can add try and catch in the code where you add the pin
and map
尝试找到它们,您可以在添加
pin
和map
的代码中添加 try and catch
then you will find the exceptions.然后你会发现例外。
there will be some exception that the vs studio can not find.not all exceptions the vs will tell you.会有一些例外是vs工作室找不到的。不是vs会告诉你的所有例外。
in the console output在控制台 output
[Google Maps Android API] Authorization failure.
[谷歌地图 Android API] 授权失败。 Please see https://developers.google.com/maps/documentation/android-api/start for how to correctly set up the map.
请参阅https://developers.google.com/maps/documentation/android-api/start了解如何正确设置 map。 [Google Maps Android API] In the Google Developer Console ( https://console.developers.google.com ) [Google Maps Android API] Ensure that the "Google Maps Android API v2" is enabled.
[Google Maps Android API] In the Google Developer Console ( https://console.developers.google.com ) [Google Maps Android API] Ensure that the "Google Maps Android API v2" is enabled. [Google Maps Android API] Ensure that the following Android Key exists:
[Google Maps Android API] 确保以下 Android 密钥存在:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.