Note that there are some explanatory texts on larger screens.

plurals
  1. POFailed to resolve Android.App.Fragment with Link SDK Only enabled
    text
    copied!<p>I'm getting compile time error when linker option = "SDK Only" with "Failed to resolve Android.App.Fragment" message. It's all started when I added Google Maps support with FragmentActivity to my MonoDroid application.</p> <p>With Linker option = "None" everything works just fine except of the fact that .apk became huge (~30mb instead of 7mb when link SDK Only enabled)</p> <p>Error details:</p> <pre><code>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&amp; context) at Xamarin.Android.Tasks.LinkAssemblies.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.&lt;ExecuteInstantiatedTask&gt;d__20.MoveNext() </code></pre> <p>I found a lot of similar problems (<a href="https://stackoverflow.com/questions/19083289/failed-to-resolve-android-app-fragment-with-link-sdk-assemblies-only-enabled">1</a>, <a href="https://stackoverflow.com/questions/19088227/linkassemblies-task-failed-with-resolutionexception-failed-to-resolve-android">2</a>, <a href="https://stackoverflow.com/questions/18364813/monodroid-google-maps-v2-the-linkassemblies-task-failed-unexpectedly">3</a>) and the only proposed solution was to disable linker which is not the case for my app.</p> <p>How can I diagnose and fix the issue?</p> <p>TIA!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload