升级到 Xamarin.Forms 4.2 后 Xamarin.Android 崩溃 [英] Xamarin.Android crash after upgrading to Xamarin.Forms 4.2

查看:31
本文介绍了升级到 Xamarin.Forms 4.2 后 Xamarin.Android 崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我升级到 Xamarin.Forms 4.2.对于 Android,它在启动后立即崩溃.

I upgraded to Xamarin.Forms 4.2. For Android, it crashed immediately after launch.

错误信息是您的应用已进入中断状态,但没有代码可显示,因为所有线程都在执行外部代码(通常是系统或框架代码).

The error message is Your app has entered a break state, but there is no code to show because all threads were executing external code (typically system or framework code).

跟踪代码后,应用程序已经启动,没有代码可以执行.然后,它崩溃了.

After tracing through the code, the app has launched and there is no code left to execute. Then, it crashed.

推荐答案

谢谢 Lucas.按照建议,在 SplashActivity.cs 中,将类声明更改为公共类 SplashActivity : global::Android.Support.V7.App.AppCompatActivity

Thanks Lucas. As suggested, in SplashActivity.cs, change the class declaration to public class SplashActivity : global::Android.Support.V7.App.AppCompatActivity

这篇关于升级到 Xamarin.Forms 4.2 后 Xamarin.Android 崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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