Bug 2417 - Linker removing Android.Graphics.Drawables.LayerDrawable
Summary: Linker removing Android.Graphics.Drawables.LayerDrawable
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 4.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2011-12-08 08:25 UTC by Milos
Modified: 2011-12-09 10:36 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Sample demonstrating the problem (18.27 KB, application/x-zip-compressed)
2011-12-08 08:25 UTC, Milos

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Milos 2011-12-08 08:25:28 UTC
Created attachment 1016 [details]
Sample demonstrating the problem

Using LayerDrawable when linker is enabled cause application crash

Unhandled Exception: Java.Lang.NoClassDefFoundError: Exception of type 'Java.Lang.NoClassDefFoundError' was thrown.
at Android.Runtime.JNIEnv.FindClass (System.String classname) [0x00000] in <filename unknown>:0
at Android.Runtime.JNIEnv.FindClass (System.Type type) [0x00000] in <filename unknown>:0
--- End of managed exception stack trace ---
java.lang.NoClassDefFoundError: android.graphics.drawables.Drawable
Comment 1 Jonathan Pobst 2011-12-08 11:07:05 UTC
This is fixed for 4.0.1.

Thanks for the report!
Comment 2 Milos 2011-12-09 10:36:29 UTC
I've found another class removed by the linker: android.text.IInputFilter

Is it already fixed for 4.0.1 or do I have to report every missing class I will find?