Release mode of android crashes without Shared runtime selected

gvuksagvuksa RSMember ✭✭
edited June 2019 in Xamarin.Forms

Hi all, I am having a very confusing issue with the Android app build in Xamarin.Forms.

When I deploy app in debug mode on my device, everything is fine.
But when I switch to release, app crashes on start. I had figured that only if I select "Use Shared Runtime" option, app works in release mode.

The issue is only happening when I have Enable ProGuard selected. The ProGuard was preventing build with warning about "org.checkerframework.checker.nullness.*", so I had added to proguard.cfg following lines:

-dontwarn org.checkerframework.checker.nullness.**
-keep class org.checkerframework.checker.nullness.* {*;}

Does anyone has any idea what could be causing this?


  • JarvanJarvan Member, Xamarin Team Xamurai

    If the unresolved classes or class members are indeed required for processing, the processed code will not function properly.
    Specifies not to warn about unresolved references and other important problems at all. The optional filter is a regular expression; ProGuard doesn't print warnings about classes with matching names. Ignoring warnings can be dangerous.
    Specifies classes and class members (fields and methods) to be preserved as entry points to your code. In order to process a library, you should specify all publicly accessible elements.

    Check the tutorial:

Sign In or Register to comment.