3

I have a Xamarin.Forms project, and it worked just fine until I updated my Xamarin Studio Community to latest 5.10.3 (build 51) and updated Xamarin.Forms to 2.2.0.31

When I compile my android project, it showed me

"mynamespace.Droid.Resource.Attribute" does not contain a definition for "actionBarSize"

I did not change anything after upgrade and it works before, I know some others faced the same problem like me when I search on google, seems no one asked this in stackoverflow yet so I would like to get some help here.

Li Cheuqar
  • 31
  • 2

2 Answers2

3

If the above doesn't work try this 1) Delete Bin and Obj folders in project folder 2) Delete contents of C:\Users{your username}\AppData\Local\Xamarin\zips 3) Rebuild project *This will take a while because xamarin will re-download the required files. it should work after its done.

0

That's a bug listed here. There are different workarounds about this, please try:

Failed to use Android Support Library v4

Creating a Hello World in Visual Studio with Xamarin Forms Fails

Xamarin cross-platform (portable class) project compilation error

Community
  • 1
  • 1
Luis Beltran
  • 1,704
  • 10
  • 13