question

jc-4480 avatar image
0 Votes"
jc-4480 asked jc-4480 commented

Xam Forms - Android.Material package errors

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.


dotnet-xamarin
image.png (18.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LeonLu-MSFT avatar image
0 Votes"
LeonLu-MSFT answered jc-4480 commented

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.



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks Leon.


Downgrading Xam.Forms to .1931 did the trick. Thanks for the quick help.

0 Votes 0 ·