Xam Forms - Android.Material package errors

jc 21 Reputation points
2021-11-02T17:53:11.913+00:00

Xamarin Community - trying to work through an issue in my Xamarin Forms app (iOS and Android).

I'm currently running Android.Material package version 1.1.0.5
Due to another error that is thrown in the newer version v. 1.4.0.4, I have downgraded to 1.1.0.5
145856-image.png

Now, when building the Android app, it's throwing an error:

Error XA4204: Unable to resolve interface type 'Google.Android.Material.Navigation.NavigationBarView/IOnItemSelectedListener'. Are you missing an assembly reference? (XA4204)

Seems I'm stuck between two different version errors with no solution??
Any advice or help is appreciated.

Developer technologies | .NET | Xamarin
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2021-11-03T02:51:24.667+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    Error XA4204: Unable to resolve interface type 'Google.Android.Material.Navigation.NavigationBarView/IOnItemSelectedListener'. Are you missing an assembly reference? (XA4204)

    If you get this error, If you update your Xamarin.Forms version to the 5.0.0.2196, If so Xamarin.Forms 5.0.0.2196 dependencies on the Xamarin.Google.Android.Material (>= 1.4.0.2 && < 1.5.0), please open this thread: https://www.nuget.org/packages/Xamarin.Forms/5.0.0.2196 then choose the Dependencies tag, you can see it.

    Due to another error that is thrown in the newer version v. 1.4.0.4, I have downgraded to 1.1.0.5

    If you downgraded to 1.1.0.5, you need to downgrad Xamarin.Forms version to 5.0.0.1931 as well.

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

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