简体   繁体   English

更新后未加载Xamarin.Forms布局

[英]Xamarin.Forms layout not being loaded after updating

Edit: Maps was not the problem, it's the forms itself as well. 编辑:地图不是问题,这也是表单本身。

In our app we are using Xamarin.Forms , and we used to use version 2.3.4.270 which was working fine. 在我们的应用程序中,我们使用Xamarin.Forms ,并且我们曾经使用过2.3.4.270版本,但运行良好。 However, after updating to the current latest version 2.4.0.18342 and cleaning the solution, we just see a white screen without any exception. 但是,在更新到最新的最新版本2.4.0.18342并清洗了解决方案之后,我们只看到了一个白色屏幕,没有任何异常。 Note that not even a part of the actual layout is rendered at all. 请注意,甚至根本不会渲染实际布局的一部分。 No code is changed. 没有代码更改。

This problem is on an Android device, iOS is working properly. 此问题是在Android设备上,iOS正常运行。

According to the release notes, there is nothing actually changed a lot in the Forms itself: 根据发行说明, Forms本身实际上并没有发生太大变化:

https://developer.xamarin.com/releases/xamarin-forms/xamarin-forms-2.4/2.4.0-stable/ https://developer.xamarin.com/releases/xamarin-forms/xamarin-forms-2.4/2.4.0-stable/

Did Xamarin change something important in their switch from 2.3 to 2.4 that I am missing out here? Xamarin是否将他们从2.3切换到2.4重要更改(我在这里错过了)?

在此处输入图片说明

The white screen appears if you did not provide an API key, or if it not valid. 如果您未提供API密钥或无效,则会出现白屏。 Since your iOS project is working fine, my suggestion will be to check your declaration of API key for android. 由于您的iOS项目运行正常,我的建议是检查您的android API密钥声明。

https://developer.xamarin.com/guides/xamarin-forms/user-interface/map/#Android https://developer.xamarin.com/guides/xamarin-forms/user-interface/map/#Android

问题是我们正在使用MvvmCross ,这在我们的项目中引起了一些问题,因此我们决定切换到另一个框架。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM