App crashes on deployment to VS Android Emulator using VS2015.

ShantimohanElchuriShantimohanElchuri USMember ✭✭✭✭✭

App crashes immediately on deployment to VS Android Emulator with VS 2015. I was using VS Emulator 5" KitKat (4.4) XXHDPI Phone. No errors reported. Don't know where to look for.

Can someone help me?

Best Answer

Answers

  • ShantimohanElchuriShantimohanElchuri USMember ✭✭✭✭✭

    Just bumping up. Any takers???

  • GeraldVersluisGeraldVersluis NLUniversity ✭✭✭✭

    Hi @ShantimohanElchuri

    Are you sure nothing is reported? What is in your application output?

    Does your app have a Application Name, Package Name, Version Number and Version Name under your app project properties, Android Manifest tab? This seems to be causing problems sometimes when running.

    Otherwise you could try the Xamarin Android Player as an alternative.

  • ShantimohanElchuriShantimohanElchuri USMember ✭✭✭✭✭

    it just a 'blank app' that is created by the Xamarin template. Nothing else is added. And it works on an Android device but not in the emulator.

    I don't want to use Android Player as it needs me to switch off / on the Hyper-V, which I want to avoid.

    And this VS Emulator works for many, but why not me also???

  • GeraldVersluisGeraldVersluis NLUniversity ✭✭✭✭

    There must be some logging at some level.
    As I have said before is there nothing in the Build output? Debug output? Log files of the emulator?

    Without any info I would just be guessing.

  • ShantimohanElchuriShantimohanElchuri USMember ✭✭✭✭✭

    Thanks @GeraldVersluis for stimulating some more thinking in me. I changed it to 'Release' and it worked. That is Release - Any CPU' worked. But it didn't work in 'Debug - Any CPU'. Here is what I see in Output window.

    Android application is debugging.
    Could not connect to the debugger.
    12-21 10:21:15.246 D/dalvikvm( 1265): Trying to load li12-21 10:22:05.377 D/dalvikvm( 1421): Added shared lib /data/app-lib/XPlatformApp_XFP.Droid-2/libmonodroid.so 0xa903cfe0
    12-21 10:22:04.277 D/dalvikvm( 1401): Late-enabling CheckJNI
    12-21 10:22:04.333 D/dalvikvm( 1401): Trying to load lib /data/app-lib/XPlatformApp_XFP.Droid-2/libmonodroid.so 0xa9045e48
    12-21 10:22:04.333 D/dalvikvm( 1401): Added shared lib /data/app-lib/XPlatformApp_XFP.Droid-2/libmonodroid.so 0xa9045e48
    12-21 10:22:04.361 W/monodroid( 1401): Using override path: /data/data/XPlatformApp_XFP.Droid/files/.override
    12-21 10:22:04.361 W/monodroid( 1401): Using override path: /storage/emulated/0/Android/data/XPlatformApp_XFP.Droid/files/.override
    12-21 10:22:04.361 W/monodroid( 1401): Trying to load sgen from: /data/data/XPlatformApp_XFP.Droid/files/.override/libmonosgen-2.0.so
    12-21 10:22:04.361 W/monodroid( 1401): Trying to load sgen from: /storage/emulated/0/Android/data/XPlatformApp_XFP.Droid/files/.override/libmonosgen-2.0.so
    12-21 10:22:04.365 W/monodroid( 1401): Trying to load sgen from: /data/app-lib/XPlatformApp_XFP.Droid-2/libmonosgen-2.0.so
    12-21 10:22:04.365 W/monodroid( 1401): Trying to load sgen from: /data/data/XPlatformApp_XFP.Droid/files/.override/links/libmonosgen-2.0.so
    12-21 10:22:04.365 W/monodroid-debug( 1401): Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,loglevel=0,address=127.0.0.1:8865,server=y,embedding=1
    12-21 10:22:04.481 W/monodroid-debug( 1401): Accepted stdout connection: 43
    12-21 10:22:05.269 D/Mono ( 1401): Image addref mscorlib[0xb7e16e10] -> mscorlib.dll[0xb7e163c0]: 1
    12-21 10:22:05.269 D/Mono ( 1401): AOT module 'mscorlib.dll.so' not found: dlopen failed: library "/data/app-lib/XPlatformApp_XFP.Droid-2/libaot-mscorlib.dll.so" not found
    12-21 10:22:05.269 D/Mono ( 1401): AOT module '/Users/builder/data/lanes/2512/d3008455/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/mscorlib.dll.so' not found: dlopen failed: library "/data/app-lib/XPlatformApp_XFP.Droid-2/libaot-mscorlib.dll.so" not found
    12-21 10:22:05.269 D/Mono ( 1401): Unloading image data-0x95e99010 [0xb7e16e70].
    12-21 10:22:05.325 D/Mono ( 1401): Assembly mscorlib[0xb7e16e10] added to domain RootDomain, ref_count=1

Sign In or Register to comment.