Xamarin.Forms.PancakeView icon indicating copy to clipboard operation
Xamarin.Forms.PancakeView copied to clipboard

[Android] error encountered: "Found tag id where item is expected" after upgraded to version 2.2.0.740

Open waterzsw opened this issue 4 years ago • 10 comments

the android project got build error "Found tag id where item is expected" after upgraded to version 2.2.0.740.

waterzsw avatar Sep 04 '20 17:09 waterzsw

after clicking the error in error list pane, the following content is shown: <?xml version="1.0" encoding="utf-8"?> <resources> <id name="view_tree_lifecycle_owner"/> </resources>

waterzsw avatar Sep 04 '20 17:09 waterzsw

@saamerm Do you think this could have something to do with the Android X migration?

I can't quite place this error.

sthewissen avatar Sep 07 '20 17:09 sthewissen

Apparently along the way while opening the can of worms that is AndroidX something changed that is impacting this in v2.2.* as that was the biggest change in there. I've subsequently pulled all the v2.2.* stuff from NuGet as I'm getting other issues related to this as well. Regarding an actual solution, I'm not quite sure when I'll get around to it. Other things in life are taking up a lot of time and will be for the foreseeable future.

sthewissen avatar Sep 09 '20 07:09 sthewissen

Hmm I dont see why it could be causing the issue. @waterzsw could you please more details for the build error?

saamerm avatar Sep 09 '20 13:09 saamerm

same issue

rambod17 avatar Sep 14 '20 09:09 rambod17

@rambod17 could you please provide more details for the build error? The trace would be very useful

saamerm avatar Sep 15 '20 18:09 saamerm

This looks like an AndroidX issues. The latest AndroidX is giving this error when building release with Linking.

Issue has been reported https://github.com/xamarin/AndroidX/issues/152

Deepfreezed avatar Sep 16 '20 18:09 Deepfreezed

Same issue. Appeared after upgrading PancakeView 2.1.0.714 -> 2.3.0.759. After reversing the upgrade everything work again. I have this version of AndroidX.MediaRouter 1.1.0.1.

veringm avatar Nov 10 '20 08:11 veringm

@rambod17 could you please provide more details for the build error? The trace would be very useful

Error fixed after clean and rebuild.

rambod17 avatar Nov 10 '20 08:11 rambod17

Please try to enable aapt2 on your Android project then rebuild your project.

agussaputrasijabat avatar Dec 09 '20 00:12 agussaputrasijabat