Upgrade nuget Xamarin.Android.Support.Design from 23.0.1.3 to 23.1.1

Issue:

In Xamarin Form , While adding reference Sqlit PCL or PCl storage ,etc . if you get following error

Severity Code Description Project File Line Suppression State
Error Unable to resolve dependencies. 'Xamarin.Android.Support.v4 23.0.1.3' is not compatible with 'Xamarin.Android.Support.Design 23.0.1.3 constraint: Xamarin.Android.Support.v4 (>= 23.0.1.3)', 'Xamarin.Forms 2.2.0.45 constraint: Xamarin.Android.Support.v4 (= 23.3.0)'. 0.

Just follow below steps for resolution

Step 1:

Close Visual Studio

Step 1:

Navigate following Folder C:\Users\<username>\AppData\Local\Xamarin
and Remove “ Zib “ Folder (it will re-create automatically while build solution )

Step 2:

Right Click on Your Solution /Project ➔ manage nuget Package➔ Click Update ➔ Update Xamarin Form like below


Step 3:

Restart Visual studio⇒Open project ==> Clean Solution and build

Step 4:

Add your Nuget package Now .



After upgrade xamarin Form , if you get below issue
Issue :

obj\Release\android\src\mono\android\support\v7\internal\widget\ActivityChooserModel_OnChooseActivityListenerImplementor.java:8: error: package android.support.v7.internal.widget.ActivityChooserModel does not exist

android.support.v7.internal.widget.ActivityChooserModel.OnChooseActivityListener
^
obj\Release\android\src\mono\android\support\v7\internal\widget\ActivityChooserModel_OnChooseActivityListenerImplementor.java:28: error: package android.support.v7.internal.widget does not exist

public boolean onChooseActivity (android.support.v7.internal.widget.ActivityChooserModel p0, android.content.Intent p1)
^
obj\Release\android\src\mono\android\support\v7\internal\widget\ActivityChooserModel_OnChooseActivityListenerImplementor.java:33: error: package android.support.v7.internal.widget does not exist

private native boolean n_onChooseActivity (android.support.v7.internal.widget.ActivityChooserModel p0, android.content.Intent p1);
^
obj\Release\android\src\mono\android\support\v7\internal\widget\FitWindowsViewGroup_OnFitSystemWindowsListenerImplementor.java:8: error: package android.support.v7.internal.widget.FitWindowsViewGroup does not exist

android.support.v7.internal.widget.FitWindowsViewGroup.OnFitSystemWindowsListener
^
obj\Release\android\src\mono\android\support\v7\internal\widget\ViewStubCompat_OnInflateListenerImplementor.java:8: error: package android.support.v7.internal.widget.ViewStubCompat does not exist

android.support.v7.internal.widget.ViewStubCompat.OnInflateListener
^
obj\Release\android\src\mono\android\support\v7\internal\widget\ViewStubCompat_OnInflateListenerImplementor.java:28: error: package android.support.v7.internal.widget does not exist

public void onInflate (android.support.v7.internal.widget.ViewStubCompat p0, android.view.View p1)

obj\Release\android\src\mono\android\support\v7\internal\widget\ViewStubCompat_OnInflateListenerImplementor.java:33: error: package android.support.v7.internal.widget does not exist

Resolution :

Step 1:

go to following folder

C:\Users\<username>\AppData\Local\Xamarin

Step 2:

clear all the folder and files.

Step 3:

Rebuild solution

0 Comments

Featured Post

How to learn Azure without paid subscription

Microsoft Azure is a cloud service that is constantly expanding to help your organization meet business challenges. You can build, manage d...

Subscribe to the FREE Weekly Newsletter to receive all the latest Microsoft Azure, AI, Xamarin

Popular Posts