2017-07-31 16 views
3

を構築し、私はチームサービスの私Xamarin.Androidアプリのリリースビルドをやろうとしていると、次のエラー持っている:私はそれはおそらく、パッケージに関連していますことがわかりますXamarinのLinkAssembliesが失敗

The "LinkAssemblies" task failed unexpectedly. 
Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: Could 
not resolve reference to 'System.Void.Android.Support.CustomTabs.CustomTabsIntent::LaunchUrl(Android.App. 
Activity,Android.Net.Uri)' (defined in assembly 
'Microsoft.Azure.Mobile.Client, Version=4.0.1.0, Culture=neutral, 
PublicKeyToken=31bf3856ad364e35') with scope 
'Xamarin.Android.Support.CustomTabs, Version=1.0.0.0, Culture=neutral, 
PublicKeyToken=null'. When the scope is different from the defining 
assembly, it usually means that the type is forwarded. ---> 
Mono.Cecil.ResolutionException: Failed to resolve System.Void.Android.Support.CustomTabs.CustomTabsIntent::LaunchUrl(Android.App.Activity,Android.Net.Uri) 
at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference) 
at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction) 
at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body) 
at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method) 
at Mono.Linker.Steps.MarkStep.ProcessQueue() 
at Mono.Linker.Steps.MarkStep.Process() 
at Mono.Linker.Steps.MarkStep.Process(LinkContext context) 
at MonoDroid.Tuner.MonoDroidMarkStep.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(DirectoryAssemblyResolver res) 
--- End of inner exception stack trace --- 
at Java.Interop.Tools.Diagnostics.Diagnostic.Error(Int32 code, Exception innerException, String message, Object[] args) 
at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res) 
at Xamarin.Android.Tasks.LinkAssemblies.Execute() 
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() 
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() 

Microsoft.Azure.Mobile.Client私はそれを解決するために何をしなければならないのか分からない(私はXamarinにとって非常に新しいので、この情報をどうすればよいか分からない)。

私のminSdkVersionがはMicrosoft.Azure.Mobile.Clientパッケージの連中がAndroid.Support.CustomTabsライブラリに問題があるように見えます21

おかげ

+0

問題を再現するための詳細な手順を教えてください。 –

+0

あなたの設定の詳細を知らなくても確信が持てませんが、あなたが依存関係を欠いているように思えます。[カスタムタブ](https://www.nuget.org/packages/Xamarin.Android.Support.CustomTabs /) パッケージ。 –

答えて

2

です。 githubの投稿された問題:Issue 364Issue 361を参照してください。 Microsoft.Azure.Mobile.Clientバージョン4.0.0はAndroid.Support.CustomTabsバージョン25.3.1に対して構築できますが、Microsoft.Azure.Mobile.Clientバージョン4.0.1はAndroid.Support.CustomTabsバージョンに対して構築できます23.3.0。

私のケースでは、Microsoft.Azure.Mobile.Clientをバージョン4.0.1からバージョン4.0.0にダウングレードすると、プロジェクトをビルドしてリンクすることができました。

関連する問題