简体   繁体   English

为什么我的应用程序在从 Xamarin.Forms.GoogleMaps 启动 map 时关闭?

[英]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尝试找到它们,您可以在添加pinmap的代码中添加 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.

相关问题 如何使用Xamarin.Forms.GoogleMaps将地图的纬度和经度转换为像素坐标? - How can you translate a map latitude and longitude to a pixel coordinate using Xamarin.Forms.GoogleMaps? 如何使用Xamarin.Forms.GoogleMaps绘制自定义图钉 - How to draw custom pin with Xamarin.Forms.GoogleMaps 如何在使用 Xamarin.Forms.GoogleMaps 单击图钉后显示弹出窗口 - How to show a popup window after a pin is clicked with Xamarin.Forms.GoogleMaps 为什么我的 Xamarin.Forms 应用程序在从 Web API 将数据插入到 SQLite 数据库后崩溃? - Why does my Xamarin.Forms app crash after inserting data to a SQLite database from a web API? 为什么使用Microsoft Azure移动服务时Xamarin Forms iOS应用程序崩溃 - Why is my Xamarin Forms iOS app crashing when using Microsoft Azure Mobile Services 为什么我的抽签动画没有在 Xamarin Forms 中显示? - Why does my lottie animation doesn't show in Xamarin Forms? 应用程序关闭 Xamarin 表单后丢失数据/文件 - Losing data/files after app closes Xamarin Forms Xamarin Forms 后台服务用于数据同步,即使应用程序关闭 - Xamarin Forms Background Service For Data Sync Even If App Closes 为什么我没有从我的 BLE 设备发送到我的 xamarin 表单应用程序的字节 [] 中获得正确的值? - Why am I not getting the correct value from my byte [] that is being sent by my BLE-device to my xamarin forms app? 当我在Xamarin Forms上启动我的android应用程序时发生异常 - Exception when I start my android app on Xamarin Forms
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM