Debugging to device has stopped working

I'm trying to debug the Android part of my app, which was working fine yesterday, but since loading the project up today has stopped working. The output window displays these messages.

Android application is debugging.
06-28 14:36:25.322 E/Zygote (32075): v2
06-28 14:36:25.322 I/SELinux (32075): Function: selinux_compare_spd_ram, index[1], SPD-policy is existed. and_ver=SEPF_SM-J500FN_5.1.1 ver=48
06-28 14:36:25.322 W/SELinux (32075): Function: selinux_compare_spd_ram, index[1], priority [2], priority version is VE=SEPF_SECMOBILE_6.0.1_0031
06-28 14:36:25.322 E/Zygote (32075): accessInfo : 0
06-28 14:36:25.322 W/SELinux (32075): SELinux: seapp_context_lookup: seinfo=default, level=s0:c512,c768, pkgname=com.companyname.CrossPlatformApp
06-28 14:36:25.322 I/libpersona(32075): KNOX_SDCARD checking this for 10200
06-28 14:36:25.322 I/libpersona(32075): KNOX_SDCARD not a persona
06-28 14:36:25.332 I/art (32075): Late-enabling -Xcheck:jni
06-28 14:36:25.352 D/TimaKeyStoreProvider(32075): TimaSignature is unavailable
06-28 14:36:25.352 D/ActivityThread(32075): Added TimaKeyStore provider
06-28 14:36:25.382 D/ResourcesManager(32075): For user 0 new overlays fetched Null
06-28 14:36:25.452 W/monodroid(32075): Creating public update directory: /data/user/0/com.companyname.CrossPlatformApp/files/.__override__
06-28 14:36:25.452 W/monodroid(32075): Using override path: /data/user/0/com.companyname.CrossPlatformApp/files/.override
06-28 14:36:25.452 W/monodroid(32075): Using override path: /storage/emulated/0/Android/data/com.companyname.CrossPlatformApp/files/.override
06-28 14:36:25.452 W/monodroid(32075): Trying to load sgen from: /data/user/0/com.companyname.CrossPlatformApp/files/.override/libmonosgen-2.0.so
06-28 14:36:25.452 W/monodroid(32075): Trying to load sgen from: /storage/emulated/0/Android/data/com.companyname.CrossPlatformApp/files/.override/libmonosgen-2.0.so
06-28 14:36:25.452 W/monodroid(32075): Trying to load sgen from: /storage/emulated/0/../legacy/Android/data/com.companyname.CrossPlatformApp/files/.override/libmonosgen-2.0.so
06-28 14:36:25.452 W/monodroid(32075): Trying to load sgen from: /data/app/com.companyname.CrossPlatformApp-1/lib/arm/libmonosgen-2.0.so
06-28 14:36:25.452 W/monodroid(32075): Trying to load sgen from: /data/user/0/com.companyname.CrossPlatformApp/files/.override/links/libmonosgen-2.0.so
06-28 14:36:25.452 W/monodroid(32075): Trying to load sgen from: /system/lib/libmonosgen-2.0.so
06-28 14:36:25.452 F/monodroid(32075): cannot find libmonosgen-2.0.so in override_dir: /data/user/0/com.companyname.CrossPlatformApp/files/.override, app_libdir: /data/app/com.companyname.CrossPlatformApp-1/lib/arm nor in previously printed locations.
06-28 14:36:25.452 F/monodroid(32075): Do you have a shared runtime build of your app with AndroidManifest.xml android:minSdkVersion < 10 while running on a 64-bit Android 5.0 target? This combination is not supported.
06-28 14:36:25.452 F/monodroid(32075): Please either set android:minSdkVersion >= 10 or use a build without the shared runtime (like default Release configuration).

I have tried cleaning and rebuilding the project, but this hasn't worked. Any ideas what's happened/how to fix it?

Tagged:

Answers

  • ClintStLaurentClintStLaurent USUniversity ✭✭✭✭✭

    What exactly do you mean by "stopped working"?
    You can't deploy?
    It deploys but doesn't debug?
    It doesn't compile?
    The debug sessions starts and then your app crashes right away and returns back?

    A couple things you can try...
    On the android device go to Settings | Apps
    Delete your app or the 0k remnants of it at com.yourcompany.yourapp
    Delete the mono runtime
    Delete the Xamarin.Android.Support libraries.

    Rebuild solution
    Deploy solution
    Debug solution

  • DavidH_1997DavidH_1997 Member ✭✭

    @ClintStLaurent the device briefly displays a white screen (the background colour of my start up page) but doesn't get as far as loading the controls, before then just returning to whatever screen my device was on before loading the app - usually just the home page.

    I'll give those suggestions a whirl and see if it fixes it.

  • DavidH_1997DavidH_1997 Member ✭✭

    Also, @ClintStLaurent where do I find the mono runtime and the Xamarin.Android.Support libraries?

  • ClintStLaurentClintStLaurent USUniversity ✭✭✭✭✭

    pkgname=com.companyname.CrossPlatformApp

    Really? You haven't set the name or company or any of the info for your app?
    How many other projects do you have on the tablet that are also unset and therefor running with the same identity?

    @DavidH_1997 said:
    Also, @ClintStLaurent where do I find the mono runtime and the Xamarin.Android.Support libraries?

    Like I said: Settings|App manager

    @DavidH_1997 said:
    @ClintStLaurent the device briefly displays a white screen (the background colour of my start up page) but doesn't get as far as loading the controls, before then just returning to whatever screen my device was on before loading the app - usually just the home page.

    So it is debugging. Debugging has not stopped working.

    Android application is debugging.

    Your app is crashing shortly after launch. So you've got a problem with your code crashing the app. You're going to have to debug like any problem. Personally I'd suggest start with walking through the execution (F-10), or putting console.writeline statements at the start of each phase of startup to see how far it gets.

  • DavidH_1997DavidH_1997 Member ✭✭

    @ClintStLaurent this is my first Xamarin app, so I'm just playing around getting used to how it works and creating a basic test app - that's why I've not set the name or any information.

Sign In or Register to comment.