Xamarin.Forms linker

Hello again,
Finally I am finished with developement of my Xamarin.Forms application so I started deploying an apk. Of course I tried to add Link SDK Assemblies only, because otherwise the apk would be 50mb big, and nobody will download such a great application.
The exact failure output is:
Fehler Unerwarteter Fehler bei der LinkAssemblies-Aufgabe.
Xamarin.Android.XamarinAndroidException: error XA2006: Reference to metadata item 'Android.Support.V4.App.NotificationCompat/BuilderExtender' (defined in 'Xamarin.Android.Support.v7.AppCompat, Version=, Culture=neutral, PublicKeyToken=null') from 'Xamarin.Android.Support.v7.AppCompat, Version=, Culture=neutral, PublicKeyToken=null' could not be resolved. ---> Mono.Cecil.ResolutionException: Failed to resolve Android.Support.V4.App.NotificationCompat/BuilderExtender
bei Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)
bei MonoDroid.Tuner.MonoDroidMarkStep.MarkType(TypeReference reference)
bei Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)
bei MonoDroid.Tuner.MonoDroidMarkStep.MarkType(TypeReference reference)
bei Mono.Linker.Steps.MarkStep.InitializeType(TypeDefinition type)
bei Mono.Linker.Steps.MarkStep.InitializeType(TypeDefinition type)
bei Mono.Linker.Steps.MarkStep.InitializeAssembly(AssemblyDefinition assembly)
bei Mono.Linker.Steps.MarkStep.Initialize()
bei Mono.Linker.Steps.MarkStep.Process(LinkContext context)
bei Mono.Linker.Pipeline.Process(LinkContext context)
bei MonoDroid.Tuner.Linker.Process(LinkerOptions options, LinkContext& context)
bei Xamarin.Android.Tasks.LinkAssemblies.Execute()
--- Ende der internen Ausnahmestapelüberwachung ---
bei Xamarin.Android.Diagnostic.Error(Int32 code, Exception innerException, String message, Object[] args)
bei Xamarin.Android.Tasks.LinkAssemblies.Execute()
bei Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
bei Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() App.Droid

I am using Xamarin.Android 6.0 and I think my NUGET packages cause this error.
I am using Xamarin.Android.Support.v7.AppCompat with version and Xamarin.Android.Support.v7.MediaRouter with version Of course I tried to update these packages to the newest version, but this was not helpful.
For Xamarin.Android.Support.v4 I used version and I am using Xamarin.forms, I tried to update these packages too, but it still caused the same error.
Since my project will be finished in a few weeks I really have to make the application smaller.

I tried to skip the Xamarin.Android.Support packages too, but this was not helpfull too.

I would be happy if anybody can help me with that problem.


Sign In or Register to comment.