Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

MapsAndLocationDemo_v2 - Linking fails to resolve "Android.App.Fragment"

$
0
0

https://github.com/xamarin/monodroid-samples/tree/master/MapsAndLocationDemo_v2

Can you try to build the sample in release with linking on? I wonder if you can reproduce the following build error. I'm trying to use a map in my app, but it gets the same build error as the sample does.

I'm getting this build error: (which i'm only guessing is referring to the MapFragment's inheritance from App.Fragment...)

-Quincy Mitchell

C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(5,5): Error MSB4018: The "LinkAssemblies" task failed unexpectedly.

Mono.Cecil.ResolutionException: Failed to resolve Android.App.Fragment

at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)

at Mono.Linker.Steps.MarkStep.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()

at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()

at Microsoft.Build.BackEnd.TaskBuilder.d__20.MoveNext() (MSB4018) (SimpleMapDemo_Froyo)


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>