Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Signed apk doesn't work on my device

I've developped an android application using Xamarin. It works fine on the emulator but crashes on real device. The apk gets installed on the device and on opening the app it says "application has stopped unexpectedly.Please try again" and forces the application to close. Targeting framework, minimum sdk version etc everything is fine but still does not work. Any help will be appreciated. Thanks

like image 293
Chethan Shetty Avatar asked Mar 28 '13 04:03

Chethan Shetty


People also ask

Why is my APK file not working?

Depending on your device, you might need to give a specific app, such as Chrome, permission to install unofficial APK files. Or, if you see it, enable Install Unknown Apps or Unknown sources. If the file doesn't open, try browsing for it with a file manager like Astro File Manager or ES File Explorer File Manager.

What is the difference between APK and signed APK?

Export Signed apk means you get the apk and it will provide the option to make the sign apk with existing keystore. Android requires that all apps be digitally signed with a certificate before they can be installed.

Why does an APK need to be signed?

By signing multiple APKs with the same certificate and using signature-based permissions checks, your apps can share code and data in a secure manner.

Does APK need to be signed?

All applications must be signed. The system will not install an application on an emulator or a device if it is not signed. To test and debug your application, the build tools sign your application with a special debug key that is created by the Android SDK build tools.


1 Answers

When you're debugging with Xamarin Studio (or Visual Studio), Xamarin.Android will install the Mono runtime and support files separately.If your application is Debug-built app, then the problem will be that the shared runtime isn't present. So on "Release" mode please ensure that you uncheck "Use shared mono runtime" on project options. I have attached the screenshot please go through. enter image description here

like image 158
Chethan Shetty Avatar answered Nov 15 '22 05:11

Chethan Shetty