简体   繁体   中英

App crashes after installing a Xamarin-Forms app

I have 3 self-written apps on my phone. 2 written with Xamarin.Android and one written with 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. If one of the two Xamarin.Android apps was installed last, then both Android apps work. 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.

Is there any reason for that? Are the frameworks not compatible?

I had the same problem trying to install the apk from Debug folder.

Steps that worked for me: - Disable "Use Shared Runtime" - In Advanced Settings, Select supported architecture

Check the screenshot if not clear

在此处输入图片说明

If you are deploying a debug apk into the same device, with different Runtimes, when the apk is installed will remove the previous / override. 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.

In Application Output you can see if any exception is causing problem..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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