GaryP
GaryP

Reputation: 233

Multiple errors after updating Xamarin Forms

I'm using Visual Studio 2017, and I stared a new Xamarin Forms app: Create New project - Cross Platform App (Xamarin) Blank App, and I chose Portable Class Library (PCL) The app compiles and runs. Now I right click the solution and choose Manage Nuget packages for solution, and it tells me I'm running version 23.3.0 and I should update to 25.4.0.1

After the update and 3 VS reboots, it gives me a host of errors I have been trying to solve for an hour including googling. All theme related.

I tried removing the styles.xml file all together. I removed the theme from the reference to the theme from the manafest and it keeps putting it back.

I can't figure out what I'm doing wrong. I have not written any code.

VS erors

Upvotes: 0

Views: 137

Answers (1)

Steve Chadbourne
Steve Chadbourne

Reputation: 6953

Xamarin Forms requires a specific version of the Android Support libraries. Do not update them.

Delete your project and create a new one.

It is possible to get round this limitation by ensuring you are using a specific version of Android and by updating all Android SDK's, but for a beginner I would recommend just using the support libraries that are installed alongside Xamarin Forms.

Upvotes: 1

Related Questions