Error Linking Assemblies


I'm not be able to run my app when a selected release mode with ProGuard and Sdk Assemblies Only.
I get the following error:

"Cound not found find class '' referenced from method"

I check the folder "obj\Release\MonoAndroid81\android\assets", decompile Mono.Android.dll and I can see the RippleDrawable class.

I don´t know what is happend

Anyone have the same problem

Thanks a lot



  • NicolasNovalbosNicolasNovalbos USMember ✭✭

    I have checked again the device log and i can see another error. I don´t know if this error or the above error does the app shutdown.

  • JohnHardmanJohnHardman GBUniversity mod


    If linking is removing classes or methods that are referenced at runtime, presumably via reflection, you can include code that harmlessly references the thing that is being removed.

    I haven't tested it, but I would assume that typeof would work in this scenario:

    var rd = typeof(Android.Graphics.Drawables.RippleDrawable);
  • NicolasNovalbosNicolasNovalbos USMember ✭✭


    I have a class for that:

    public class LinkerPleaseInclude
    public void Include(RippleDrawable drawable)
    drawable.Alpha = 1;

        public void Include(AppCompatImageHelper imageHelper)
            var a =imageHelper.PeerReference.IsValid;

    I think this class does what you're suggesting

    Thanks for answering

Sign In or Register to comment.