Sami Ben
Sami Ben

Reputation: 556

Build errors in blank Xamarin.Forms app

I use Xamarin for VS and I get 36 errors, this is the first one:

Severity Code Description Project File Line Suppression State Error Please install package: 'Xamarin.Android.Support.Design' available in SDK installer. Android resource directory C:\Users\Cayl\AppData\Local\Xamarin\Android.Support.Design\23.0.1.3\embedded./ doesn't exist. forms.Droid

I gather it's because XF don't support the current Android Support Library I have (23.1.1), how do I fix this step by step, do I uninstall Android Support Library and get 23.0.1 from internet somewhere or what?

Upvotes: 1

Views: 1486

Answers (2)

mfranc28
mfranc28

Reputation: 1335

It sounds like you might have a corrupt download. Please try deleting the zips folder, and any Android.Support.* folders from inside C:\Users\username\AppData\Local\Xamarin.

Then, delete the bin/ and obj/ folders from your solution's project folders, restart Visual Studio, and rebuild.

Upvotes: 0

SushiHangover
SushiHangover

Reputation: 74209

Those errors are due to the failure to automatically download the zip files from Google the first time (after that they are cached for project reuse).

If you have network access to dl-ssl.google.com, then cleaning and rebuilding the project "should" work. Sometimes exiting and restarting Visual Studio (or Xamarin Studio on OS-X) and then rebuilding will start the downloads again properly.

Otherwise the error message shows the download link for the zip file(s) needed and the directory that you need to manually place them in:

Example Error Message:

Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:\Users\YOURUSERID\AppData\Local\Xamarin\Android.Support.Design\23.0.1.3 directory.

Once they are downloaded, they will be available for all future solution/projects.

Upvotes: 1

Related Questions