Even after installing v4 support library from Xamarin Component Store,I get this error.I tried googling for these problems but I always get the same error in Xamarin Studio while developing android app
This is Xamarin Bug 32498
The problem starts when you are normally installing one of Xamarin.Android.Support.* nuget packages.
Then IDE (VS2015 for me) hangs and nothing goes well, so you're forced to shutdown the IDE. After re-openning the IDE and forcing a link to the assemblies and when it comes to build the project, it says :
package android.support.* doesn't exist
First You Must Know That:
Xamarin.Android.Support.* are actually C# bindings of google support libraries (THAT ARE WRITTEN IN JAVA), so they are not completely native and they wrappers of google support libraries (for more about Xamarin C# bindings read : Binding A Java Library).
Bug Scenario:
The time the IDE hangs is the time when it starts downloading Google Support Library Sources (about 96 MB) from the internet for each of the Xamarin.Android.Support.* packages then extracting it to
C:\Users\%username%\AppData\Local\Xamarin
I propose 2 solutions:
A friend told me that using a version other than 22.2.1 would solve the problem ( I didn't try it)
Manual Extracting of the package (e.g. Xamarin.Android.Support.v4):
C:\Users\%username%\AppData\Local\Xamarin
, delete the folder with the desired library name if it exists e.g. Android.Support.v4
C:\Users\%username%\AppData\Local\Xamarin\{LibraryName}\22.2.1
e.g. C:\Users\%username%\AppData\Local\Xamarin\Android.Support.v4\22.2.1
C:\Users\%username%\AppData\Local\Xamarin\Android.Support.v4\22.2.10\content
Open the pre-downloaded archive android_m2repository_r16
, navigate to m2repository\com\android\support
and go to libraryname\22.2.1
(e.g. support-v4\22.2.1
. Search for and open libraryName-22.2.1.aar
(e.g. support-v4-22.2.1.aar
(it opens directly with WinRAR) extract the content of the file to C:\Users\%username%\AppData\Local\Xamarin\{LibraryName}\22.2.10\embedded
e.g. C:\Users\%username%\AppData\Local\Xamarin\Android.Support.v4\22.2.10\embedded
Run the package installation nuget command
you have to keep a copy of android_m2repository_r16.zip inside C:\Users\%username%\AppData\Local\Xamarin\Android.Support.v4\22.2.10\
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With