Solution 1 :
To solve the Ambiguous error you might want to try use a full name of the class, like:
TabLayoutResource = Xamarin.Forms.Platform.Android.Resource.Layout.Tabbar;
using AndroidRs = Xamarin.Forms.Platform.Android.Resource; ... TabLayoutResource = AndroidRs.Layout.Tabbar;
Also you can refer to official doc for more options
I’m having issue’s with missing resources on builds.
I found why The Rescource.Designer.cs is set to Build to => Compile.
Now If I set it to Android Resource 1 of 2 things happen
I get a Ambiguous Error on Debug for
TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar;
Resource’ is an ambiguous reference between
If I Delete bin/obj And Rebuild Then The Build action for Designer is back to => Compile
Scnario 2 I get the Following Error
Error APT1045: invalid resource directory name:
MyPath/obj/Release/res/ resource.designer.cs ” resource.designer.cs”.
If anyone can help me with this, There next to no information I can find in regards to these
If I resolve the Ambiguous issue It cant find the Toolbar or Tabbar