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
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Your screenshot is too small and I can barely read the code and error messages. But it appears that you have Java code in Xamarin Studio and it's generating compile errors. That would be expected since Xamarin Studio only compiles C#, and not Java. You'll have to take your current Java code and convert it to C#.
I didn’t have an issue with that component using xamarin version 3.11.586 and v4 support lib version 22.2.0.0. Would you be able to try this?
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 :
Here's what happens in the background:
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
Solutions:
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 tom2repository\com\android\support
and go tolibraryname\22.2.1
(e.g.support-v4\22.2.1
. Search for and openlibraryName-22.2.1.aar
(e.g.support-v4-22.2.1.aar
(it opens directly with WinRAR) extract the content of the file toC:\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
Edit
you have to keep a copy of android_m2repository_r16.zip inside
C:\Users\%username%\AppData\Local\Xamarin\Android.Support.v4\22.2.10\