Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dbwelch opened this issue May 11, 2019 · 2 comments
Open

Comments

@dbwelch
Copy link

dbwelch commented May 11, 2019

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 dbwelch changed the title Cannot run on with Forms 4.0, GetIconDrawable is obsolete as of 4.0.0 Cannot deploy on with Forms 4.0, GetIconDrawable is obsolete as of 4.0.0 May 11, 2019
@dbwelch dbwelch changed the title Cannot deploy on with Forms 4.0, GetIconDrawable is obsolete as of 4.0.0 Cannot deploy using Forms 4.0, GetIconDrawable is obsolete as of 4.0.0 May 11, 2019
@AntvissMedia
Copy link

AntvissMedia commented May 17, 2019

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.

@Samirgc
Copy link

Samirgc commented May 26, 2019

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants