Search code examples
xamarinxamarin.androidapk

Xamarin Released/Debug apk is not opening on android device


I have created an app in Xamarin Android and its running fine on emulator,I install the Debug & Released mode apk to a real device,installation done successfully but none of them are opening on device. Its giving me an error "unfortunately app has stopped". What could be the reason ?

I also tired following configuration while building app in release mode:

Packaging:

Use Shared Run time: false(Unchecked)

Use Fast Deployment: false(Unchecked)

Linking : Sdk Assemblies Only

Architecture: armeabi-v7a


Solution

  • I just found the issue.I just added the below line of code in the manifest file and it works.

    <uses-permission android:name="android.permission.INTERNET" />
    

    Hope it may help someone else!