ShellItemRenderer.java - Error when building Android Solution

Andrew 156 Reputation points
2021-07-11T08:06:50.87+00:00

Hi
When building the solution (tried both Xamarin forms 4.8 and 5) i keep getting the folllowing errors. I have deleted bin and obj directories but the issue continues

Error error: ShellItemRenderer is not abstract and does not override abstract method onNavigationItemSelected(MenuItem) in OnItemSelectedListener
public class ShellItemRenderer My.Android c:\ShellItemRenderer.java 4

Error error: TabbedPageRenderer is not abstract and does not override abstract method onNavigationItemSelected(MenuItem) in OnItemSelectedListener
public class TabbedPageRenderer My.Android C:\TabbedPageRenderer.java 4

At a bit of a loss now what to do next - error keeps coming back

Developer technologies | .NET | Xamarin
{count} votes

Answer accepted by question author
  1. Andrew 156 Reputation points
    2021-07-14T07:44:37.76+00:00

    Reverting package updates to Xamarin.Google.Android.Material from 1.4 -> 1.3.0.1 seems to have fixed this error for me

    8 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Oleksii Rvachov 6 Reputation points
    2021-07-12T08:22:38.283+00:00

    seems like it's a Xamarin.Google.Android.Material update issue https://github.com/xamarin/AndroidX/issues/335

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.