Is it somehow possible to release an android app in debug mode?

My code works well when in debug mode, but whenever i use release mode, it does not behave as it should. Since it is an app for internal use, I just want know if it is possible to somehow make an apk in debug mode.



  • D3nnisD3nnis USUniversity ✭✭✭

    It will be way better to fix your problem. Make sure that all your permissions are set correctly in the Manifest file.
    Does it crash or did some functionality stopped working?

    If you still want to release the debug build, open your bin folder, select your unsigned apk and sign it. Don't use the signed one, because it's signed with a debug key and you might get some trouble later if you want to update the app.

    How to manually sign your apk:

  • jezhjezh Member, Xamarin Team Xamurai

    As @D3nnis said, it is not recommended to release the an android app in debug mode.

    In order to find the solution, you could try to find the problem with the following method
    1. you can try to enable the Linking option to None as follows, and then try again.

    2. When we check the link, we will find

    Note that Debug builds automatically set some permissions to make debug easier (such as Internet and ReadExternalStorage). Release builds, however, use only the permissions that you explicitly configure. If you find that switching to the Release build causes your app to lose a permission that was available in the Debug build, verify that you have explicitly enabled this permission in the Required permissions list as described in Permissions.

    So, you can check the permission in your code.
    3. Besides, you can check if the app throw some Exception or some functionality doesn't work as expected.
    We are willing to help you with these problems.

    Of course , if you still want to release an android app in debug mode, you can manually sign the APK,
    for more details:

  • jezhjezh Member, Xamarin Team Xamurai

    Have you got the solution?

Sign In or Register to comment.