Android Resource issues after upgrading to Xamarin Forms 2.0

NFerrisseyNFerrissey USMember, University

I have recently upgraded 2 machines from Xamarin Forms 1.x to 2.0. One machine is OK and Xamarin Forms projects build fine for Android. The other machine is having dreadful issues.

We have tried uninstalling and re-installing everything - Xamarin, Android SDK, all NuGet packages - the lot - but get the same error messages.
It seems to be related to Android app compat stuff.

Steps to replicate are:

  1. Create new Forms 1.3 project - compile and run - all OK
  2. Upgrade project from Forms 1.3 to 2.0 - issues

Lots of errors like these:

2>d:\Documents\Visual Studio 2015\Projects\App4\App4\App4.Droid\Resources\Resource.Designer.cs(1290,119,1290,143): error CS0117: 'Resource.Styleable' does not contain a definition for 'SnackbarLayout_elevation'
2>d:\Documents\Visual Studio 2015\Projects\App4\App4\App4.Droid\Resources\Resource.Designer.cs(1291,130,1291,165): error CS0117: 'Resource.Styleable' does not contain a definition for 'SnackbarLayout_maxActionInlineWidth'
2>d:\Documents\Visual Studio 2015\Projects\App4\App4\App4.Droid\Resources\Resource.Designer.cs(1308,104,1308,113): error CS0117: 'Resource.Styleable' does not contain a definition for 'TabLayout'
2>d:\Documents\Visual Studio 2015\Projects\App4\App4\App4.Droid\Resources\Resource.Designer.cs(1309,118,1309,141): error CS0117: 'Resource.Styleable' does not contain a definition for 'TabLayout_tabBackground'
2>d:\Documents\Visual Studio 2015\Projects\App4\App4\App4.Droid\Resources\Resource.Designer.cs(1310,120,1310,145): error CS0117: 'Resource.Styleable' does not contain a definition for 'TabLayout_tabContentStart'
2>d:\Documents\Visual Studio 2015\Projects\App4\App4\App4.Droid\Resources\Resource.Designer.cs(1311,115,1311,135): error CS0117: 'Resource.Styleable' does not contain a definition for 'TabLayout_tabGravity'
2>d:\Documents\Visual Studio 2015\Projects\App4\App4\App4.Droid\Resources\Resource.Designer.cs(1312,122,1312,149): error CS0117: 'Resource.Styleable' does not contain a definition for 'TabLayout_tabIndicatorColor'
2>d:\Documents\Visual Studio 2015\Projects\App4\App4\App4.Droid\Resources\Resource.Designer.cs(1313,123,1313,151): error CS0117: 'Resource.Styleable' does not contain a definition for 'TabLayout_tabIndicatorHeight'

etc. etc.

Any ideas?

Best Answer

Answers

  • AlessandroCaliaroAlessandroCaliaro ITMember ✭✭✭✭✭

    try to update your packages.

  • NFerrisseyNFerrissey USMember, University

    @AlessandroCaliaro said:
    try to update your packages.

    Yeah, tried that but didn't make any difference unfortunately.

  • AlessandroCaliaroAlessandroCaliaro ITMember ✭✭✭✭✭

    Try to remove manually all packages present under "packages" directory

  • NFerrisseyNFerrissey USMember, University

    So...I removed the packages manually. They were restored when I built the solution and back to the original error :(

  • @NFerrissey Did this work? I have the same problem but my .Design. folders all contain the 23.0.1.3 folder.

  • NFerrisseyNFerrissey USMember, University

    @MarcusClasson said:
    @NFerrissey Did this work? I have the same problem but my .Design. folders all contain the 23.0.1.3 folder.

    The problem has reoccurred a couple of times since - usually after installing a nuget package. I have found the best approach is to backup and remove anything under 23.0.1.3 folders, build the project and then check the output window. The output will give you the link to the zip file and where to unzip it.

    Hope that helps.

  • @NFerrissey said:

    @MarcusClasson said:
    @NFerrissey Did this work? I have the same problem but my .Design. folders all contain the 23.0.1.3 folder.

    The problem has reoccurred a couple of times since - usually after installing a nuget package. I have found the best approach is to backup and remove anything under 23.0.1.3 folders, build the project and then check the output window. The output will give you the link to the zip file and where to unzip it.

    Hope that helps.

    I solved it as well. Nice to finally understand what is going on. :-)
    I wrote about it here http://marcusclasson.com/2015/12/08/xamarin-error-apt0000-error-parsing-xml-syntax-error/

Sign In or Register to comment.