Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Missing classes android support library

I get 65 error messages, what is wrong? I'm just following the tutorial.

Error 1 error: package android.support.v4.app.FragmentManager does not exist
android.support.v4.app.FragmentManager.OnBackStackChangedListener
C:\Users\Italo\Documents\Xamarin\TemaMaterial\TemaMaterial\obj\Debug\android\src\mono\android\support\v4\app\FragmentManager_OnBackStackChangedListenerImplementor.java 8 41 TemaMaterial
Error 2 error: package android.support.v4.content.Loader does not exist
android.support.v4.content.Loader.OnLoadCompleteListener
C:\Users\Italo\Documents\Xamarin\TemaMaterial\TemaMaterial\obj\Debug\android\src\mono\android\support\v4\content\Loader_OnLoadCompleteListenerImplementor.java 8 36 TemaMaterial
Error 3 error: package android.support.v4.content does not exist
public void onLoadComplete (android.support.v4.content.Loader p0, java.lang.Object p1)
C:\Users\Italo\Documents\Xamarin\TemaMaterial\TemaMaterial\obj\Debug\android\src\mono\android\support\v4\content\Loader_OnLoadCompleteListenerImplementor.java 27 56 TemaMaterial

Answers

  • SebastianSeidel.9226SebastianSeidel.9226 DEInsider, University ✭✭✭✭

    Have you added Xamarin.Android.Support.v4 NuGet package to your project?

  • FndFnd TWMember

    if you already added the package,try to rebuild it again?

  • ItaloPessoaItaloPessoa BRMember ✭✭

    Apparently the problem occur because the zip file android_m2repository_r14 is corrupted. So is necessary download manually and unzip at %localappdata%\Xamarin\Android.Support.v4 and %localappdata%\Xamarin\Android.Support.v7.AppCompat folders.

    This worked

  • ____Seven_______Seven___ CNMember

    Hi Italo! do you mean put the folder named android_m2repository_r14 into the path %localappdata%\Xamarin\Android.Support.v4 and %localappdata%\Xamarin\Android.Support.v7.AppCompat?
    Do I need to change those files in the %localappdata%\Xamarin\zips folder?

  • abdulraufraufiabdulraufraufi PKMember ✭✭

    C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(5,5): Error MSB4018: The "LinkAssemblies" task failed unexpectedly.
    Xamarin.Android.XamarinAndroidException: error XA2006: Reference to metadata item 'System.Void Java.Interop.JavaTypeParametersAttribute::.ctor(System.String[])' (defined in 'Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') from 'Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' could not be resolved. ---> Mono.Cecil.ResolutionException: Failed to resolve System.Void Java.Interop.JavaTypeParametersAttribute::.ctor(System.String[])
    at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)
    at Mono.Linker.Steps.MarkStep.MarkCustomAttribute(CustomAttribute ca)
    at Mono.Linker.Steps.MarkStep.MarkCustomAttributes(ICustomAttributeProvider provider)
    at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)
    at MonoDroid.Tuner.MonoDroidMarkStep.MarkType(TypeReference reference)
    at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)
    at MonoDroid.Tuner.MonoDroidMarkStep.MarkType(TypeReference reference)
    at Mono.Linker.Steps.MarkStep.InitializeType(TypeDefinition type)
    at Mono.Linker.Steps.MarkStep.InitializeAssembly(AssemblyDefinition assembly)
    at Mono.Linker.Steps.MarkStep.Initialize()
    at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
    at Mono.Linker.Pipeline.Process(LinkContext context)
    at MonoDroid.Tuner.Linker.Process(LinkerOptions options, LinkContext& context)
    at Xamarin.Android.Tasks.LinkAssemblies.Execute()
    --- End of inner exception stack trace ---
    at Xamarin.Android.Diagnostic.Error(Int32 code, Exception innerException, String message, Object[] args)
    at Xamarin.Android.Tasks.LinkAssemblies.Execute()
    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
    at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() (MSB4018) (ComputerGlossary)

  • Where do we download these zip files from???

  • SebastianSeidel.9226SebastianSeidel.9226 DEInsider, University ✭✭✭✭

    @AlexZaytsev.4046 If you got the message that the file is corrupted, Xamarin Studio/ Visual Studio for Mac provides a link to the zip file.

Sign In or Register to comment.