Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] android – Xamarin.Forms.Droid Resource, Ambiguous Terms/ Build Action’s Randomly Changing Missing Resources

Posted on November 11, 2022 By

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;

or aliases:

using AndroidRs = Xamarin.Forms.Platform.Android.Resource;
...
TabLayoutResource = AndroidRs.Layout.Tabbar;

Also you can refer to official doc for more options

Problem :

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

Scenario 1:

I get a Ambiguous Error on Debug for

    TabLayoutResource = Resource.Layout.Tabbar;
    ToolbarResource = Resource.Layout.Toolbar;

Resource’ is an ambiguous reference between
‘Xamarin.Forms.Platform.Android.Resource’ and
‘Plugin.FirebasePushNotification.Resource’

If I Delete bin/obj And Rebuild Then The Build action for Designer is back to => Compile

Scnario 2 I get the Following Error

Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Aapt.targets(3,3):
Error APT1045: invalid resource directory name:
MyPath/obj/Release/res/ resource.designer.cs ” resource.designer.cs”.
(APT1045)

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

READ  [FIXED] java - Two threads enter a synchronized block
Powered by Inline Related Posts
Android Tags:android, xamarin, xamarin.android, xamarin.forms

Post navigation

Previous Post: [FIXED] Is it possible to switch from Start state to End state in android MotionLayout using Java/Kotlin?
Next Post: [FIXED] android – PHP / SQL: cannot save image at server but successful save image link at SQL database

Related Posts

[FIXED] java – I need admob smart banner to be on bottom of app (using XML if possible) Android
[FIXED] android – RecyclerView inside PopupWindow, how to dismiss after clicking item? Android
[FIXED] android – Load images from firebase storage without image extension Android
[FIXED] html – Xamarin – Android app cant access site anymore Android
[FIXED] java – Problem to read an ArrayList or List of a parcelable class Android
[FIXED] android – Firebase Cloud Messaging Push and In-app notifications Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • Which is stronger 19 gauge or 23 gauge?
  • Does BMW still use GM transmissions?
  • Is primary or secondary market research better?
  • What does it mean when ADT says low battery?
  • Can a baby sleep on a regular mattress?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme