新しい Google マップ v2 を使用して、モノドロイドでアプリを作成しています。Google Play サービスのバインディングを作成して使用しました。デバッグモードではすべて正常に動作しますが、リリースでは次のエラーが発生します。
System.Exception: 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(LinkContextcontext) 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.Execue()
at Microsoft.Build.BackEnd.TaskBuilder.d__20.MoveNext()
Google Play Service バインディングを削除してマップすると、機能します。
助けてくれる人?
編集:解決策を見つけました:リンクをなしに設定します。しかし、apkファイルが大きくなったので、「SDKアセンブリのみ」に設定されたリンクで動作するようにしたいと思います。