How to change version of Xamarin.Forms.Platform.Android.dll

For too long I scratched my head over this, and I did not find any information that helps online. I tried to change the target / minimum frameworks, and also try to update packages that fail and say:

Unable to resolve dependencies. 'Xamarin.Android.Support.v7.CardView 23.4.0' is not compatible with 'Xamarin.Forms 2.2.0.43 constraint: Xamarin.Android.Support.v7.CardView (= 23.3.0)'. 

And deployment error after successful build:

 The $(TargetFrameworkVersion) for Xamarin.Forms.Platform.Android.dll (v6.0) is greater than the $(TargetFrameworkVersion) for your project (v4.4). You need to increase the $(TargetFrameworkVersion) for your project. Squared C:\Users\USER\Repositories\SOLUTION\PROJECT\PROJECT.csproj 

These errors occur for several packages at the same time.

I would like to keep my framework as follows: enter image description here

I think my next step is to try changing the version of Xamarin.Forms.Platform.Android.dll, but I'm not sure how to do this.

+7
xamarin xamarin.android xamarin.forms
source share
1 answer

In the "Compiling using the Android version" field, you should use "Android 6.0 (Marshmallow)" If it does not exist in the list, install it from the Android sdk manager. (install the exact version 23.3.0)

For TargetFrameworkVersion you must edit the .csproj file. Find this tag and change its value to 6.0

+5
source share

All Articles