Hundreds of Resource.Designer.cs build errors on latest Xamarin Forms 2.2.0.45

前端 未结 3 1829
攒了一身酷
攒了一身酷 2021-01-22 15:56

I have a new Xamarin Forms solution setup with a PCL, an iOS app (which builds fine), and an Android project. The Android project is up to date with the latest Nuget packages fo

相关标签:
3条回答
  • 2021-01-22 16:28

    I've also had this problem very recently, Follow these steps =>

    • Clean your solution, build again then you will see these kind of errors in outpust " Please install package: 'Android Support Library' available in SDK installer. Java library file

      C:\Users\dev\AppData\Local\Xamarin\Android.Support.v4\21.0.3\embedded\classes.jar doesn't exist. MyProject.Droid"

      then please follow this question [Xamarin Forms Android Error: Please install package 'Android Support Library'

    • Please update your package but keep in mind that package version should depend on the version of Xamarin Forms you have installed.

    • At last if problem still persists with some strings then cross
      check the components updates and build tools version from the android sdk managers.

    It was quite a long process and you have to hit/try for this with the correct packages installation.

    0 讨论(0)
  • 2021-01-22 16:36

    I solved this by installing these Nuget packages -Xamarin.Android.Support.Design, Xamarin.Android.Support.v13, Xamarin.Android.Support.v4, Xamarin.Android.Support.v7.AppCompat, Xamarin.Android.Support.v7.CardView, Xamarin.Android.Support.v7.GridLayout, Xamarin.Android.Support.v7.MediaRouter, Xamarin.Android.Support.v7.Palette, Xamarin.Android.Support.v7.RecyclerView, Xamarin.Android.Support.v8.RenderScript, Xamarin.Android.Support.Vector.Drawable, and also @Clowning answer of adding a partial class for the missing resources. CHECKED IN, NEVER TO TOUCH NUGET ON THIS PROJECT AGAIN!

    0 讨论(0)
  • 2021-01-22 16:52

    Check your android sdk manager and uninstall all Android SDK Build Tools except for the lastest and greatest

    Close Visual Studio and Delete Everything in this folder and C:\Users\YOURUSER\AppData\Local\Xamarin\

    Reopen Project And Rebuild Solution and visual Studio will re-download files needed back in that folder and you should be set to go

    0 讨论(0)
提交回复
热议问题