[英]App crashes after installing a Xamarin-Forms app
I have 3 self-written apps on my phone.我的手机上有 3 个自己编写的应用程序。 2 written with Xamarin.Android and one written with Xamarin.Forms. 2 个用 Xamarin.Android 编写,一个用 Xamarin.Forms 编写。 But there is a big problem.但是有一个很大的问题。 It always work only 2 or 1 app depending on which of the 3 apps was installed last.它始终只能运行 2 个或 1 个应用程序,具体取决于最后安装的 3 个应用程序中的哪一个。 If one of the two Xamarin.Android apps was installed last, then both Android apps work.如果最后安装了两个 Xamarin.Android 应用之一,则这两个 Android 应用都可以运行。 The Forms App, however, crashes immediately.然而,表单应用程序立即崩溃。 Same the other way around.反过来也一样。 If the Forms app was installed last, it works fine.如果表单应用程序是最后安装的,则它可以正常工作。 The two Android apps crash immediately.这两个 Android 应用程序立即崩溃。
Is there any reason for that?有什么理由吗? Are the frameworks not compatible?框架不兼容吗?
If you are deploying a debug apk into the same device, with different Runtimes, when the apk is installed will remove the previous / override.如果您将调试 apk 部署到具有不同运行时的同一设备中,则安装 apk 时将删除以前的 / 覆盖。 So, you will need to: disable Shared Runtime, or make sure the dependencies are all the same in all the applications因此,您需要:禁用共享运行时,或确保所有应用程序中的依赖项都相同
If you are using visual studio then Check "Application output" with release on device.如果您使用的是visual studio,请检查“应用程序输出”并在设备上发布。
In Application Output you can see if any exception is causing problem..在应用程序输出中,您可以查看是否有任何异常导致问题..
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.