-
Notifications
You must be signed in to change notification settings - Fork 1.9k
ShellItemRenderer.java - Error when building Android Solution #14492
Comments
I have same issue |
Same here |
I have same issue - VS 16.10.3, XF 5.0 |
Reverting package updates to I am also using VS 16.10.3 with Xamarin.Forms 5.0.0.2083 (r4) |
Me too. |
I'm getting the same error. reverting to older version until fixed. |
Me too.
|
Same here... |
My case was error started from the change the deprecated AndroidX.AppCompat to new package. Downgrade 'Xamarin.Google.Android.Material' from 1.4 -> 1.3.0.1. |
Still an issue in 1.4.0.1 as well |
I had this issue too but I never had the Xamarin.Google.Android.Material package installed. Anyway, I installed version 1.3.0.1 and it compiled ?!? |
the .1 only adds .net6-android as target and changed nothing else. |
This is still an issue even with all the AndroidX latest updates. Reverting package updates to Xamarin.Google.Android.Material from 1.4.0.1 -> 1.3.0.1 seems to have fixed this error for me. |
I have the same issue. Same true for TabbedPageRenderer - TabbedPageRenderer is not abstract and does not override abstract method onNavigationItemSelected(MenuItem) in OnItemSelectedListener |
Looks like the issue is that Google added a new interface, added it to the existing interface, and moved the Material 1.3: public interface IOnNavigationItemSelectedListener : IJavaObject, IDisposable, IJavaPeerable
{
bool OnNavigationItemSelected(IMenuItem item);
} Material 1.4: [Obsolete("This class is obsoleted in this android platform")]
public interface IOnNavigationItemSelectedListener : NavigationBarView.IOnItemSelectedListener, IJavaObject, IDisposable, IJavaPeerable
{
}
public interface NavigationBarView.IOnItemSelectedListener : IJavaObject, IDisposable, IJavaPeerable
{
bool OnNavigationItemSelected(IMenuItem p0);
} This may (?) be a binary compatible change in Java, but it is not in C#. I think XF/Maui will need to release a new version that is built against Material 1.4+, and specifies 1.4 as a minimum dependency. That is, XF and the user app must be both compiled with 1.3 or earlier, or 1.4+. The issue now is that XF is compiled against 1.3, but the user app is compiled against (and shipping) 1.4. The workaround for now is that users must continue to use Material 1.3 with the current version of XF. |
Maui has a PR they are working on to fix it there: Xamarin.Forms will need something similar, so I'm going to transfer this issue to that repo so they can track it. |
Me too. |
you need to wait until #14506 is merged and SR5 is out |
This is still an issue in v. 1.4.0.2 |
read my comment below, you need to wait until the mentioned RP is merged into XF and SR5 gets released. |
Hi, 5.0.0.2125 update is works for me. Thx |
Ditto. |
Looks like this is resolved now, thanks! |
Thank you, this helped me. Weird though, since We never installed this. |
By using NavigationItemSelected on Xamarin.Forms 5.0.0.2196 and Xamarin.Google.Android.Material 1.3.0.1 Anybody knows how to solve this ? |
5.0.0.2196 depends on Xamarin.Google.Android.Material in Version 1.4.x |
Can you please ping me when this is fixed on Xamarin.Forms 5.0.0.2244? Thanks... |
Still not fixed |
Updating Xamarin.Forms to |
Fixed with this particular versions |
Hello after update Xamarin.Android bindings for AndroidX package from 1.3.0.1 to 1.4.0 it gives error as following in build Android Solution time. There is no problem in version 1.3.0.1
The text was updated successfully, but these errors were encountered: