Iconize icon indicating copy to clipboard operation
Iconize copied to clipboard

Cannot deploy using Forms 4.0, GetIconDrawable is obsolete as of 4.0.0

Open dbwelch opened this issue 6 years ago • 2 comments

Get a deployment error with missing method GetIconDrawable on Android build only. The iOS build works using 4.0, but, my app does not use IconTabbedPage, suspect it would fail if I were.

Looking at 4.0 TabbedPageRenderer code, has this comment above GetIconDrawable:

[Obsolete("GetIconDrawable is obsolete as of 4.0.0. Please override SetTabIconImageSource instead.")]

See https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.Platform.Android/AppCompat/TabbedPageRenderer.cs

dbwelch avatar May 11 '19 16:05 dbwelch

Is the workaround in the meantime to revert to a pre 4.0 Forms version? Many thanks

LATER EDIT: The answer is Yes. Downgrading Forms to 3.6.x allows a succesful build. It would be good to know if there's a time frame for this issue.

AntvissMedia avatar May 17 '19 19:05 AntvissMedia

Debug is working Fine for me on Forms 4.0 and In release mode it is throws exception. Any updates on time frame for this resolution on release mode. Mono.Linker.MarkException: Error processing method: 'Android.Graphics.Drawables.Drawable Plugin.Iconize.IconTabbedPageRenderer::GetIconDrawable(Xamarin.Forms.FileImageSource)' in assembly: 'Plugin.Iconize.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve Android.Graphics.Drawables.Drawable Xamarin.Forms.Platform.Android.AppCompat.TabbedPageRenderer::GetIconDrawable(Xamarin.Forms.FileImageSource)

Samirgc avatar May 26 '19 18:05 Samirgc