Reputation: 1627
I just updated to Xamarin.Forms 2 a solution with three projects:
I update Xamarin.Forms, Android SDK and I am compiling using the last SDK, which is 23:
When compiling I get tons of errors:
This is how my Nuget looks like:
Any ideas about how to solve this? Really appreciate any help!
Edit Following this post I deleted the folders of "...\Local\Xamarin\" and now I don't have anymore that error. Instead I now have this errors:
edit 2 I uninstalled and installed Xamarin and I'm getting the same error from resource cs file as shown in last picture
Please help
Upvotes: 2
Views: 1015
Reputation: 1627
This is what I tried, at the end of every step I tested and get the same error results:
So finally this solve my problem:
I will try to update to Xamarin.Forms 2 in a few weeks, but now I need to continue working so I need Xamarin to work, so sadly this was my "workaround".
Upvotes: -1
Reputation: 16199
This is how I resolved it. I'm starting from the beginning even though I know you resolved the first error.
Set your target and compile to specifically API 23 (not really a part of this issue but recommended due to other issues that have popped up in the past)
Go to that directory it mentions, go up a level from content, so you will see the content folder and the android m2repository, then delete it all. Do that for every path it references.
Rebuild and it will redownload and install those files.
VS or Xamarin (not sure which) corrupt those zips on a regular basis. Be prepared to do it again in a few days, weeks or months.
Now go to your Resource.Designer.cs and delete everything inside that file. Normally good to keep it there so your project still references it.
That should finally sort out all of these errors.
** Next step if above fails **
You might also want to add sobbing, praying or cursing in with those steps :)
One final thing, if that doesn't work, try the same again but this time uninstalling all NuGet packages and components instead of a reinstall. Then make sure your cache's are clean (C:\Users\\AppData\Local\Xamarin)
Upvotes: 2