2016-11-23 57 views
3

Xamarin Android應用結果當我在亞馬遜S3的NuGet包添加到我的xamarin Android應用程序,我得到以下錯誤,包括Amazon S3的NuGet在FileNotFoundException異常

Severity Code Description Project File Line Suppression State 
Error  Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Net.Http.Primitives, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for Android profile? 
File name: 'System.Net.Http.Primitives.dll' 
    at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters) 
    at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(ICollection`1 assemblies, AssemblyDefinition assembly, Boolean topLevel) 
    at Xamarin.Android.Tasks.ResolveAssemblies.Execute() ContentUpdater 

不知道如何解決這個問題?

Nick。

更新:只是試圖用一個Windows 10通用的應用程序一樣,我得到這個,

Severity Code Description Project File Line Suppression State 
Error  Cannot resolve Assembly or Windows Metadata file 'System.Net.Http.Primitives.dll' WindowsContentUpdater C:\devoctomy\GitHub\ContentUpdater\WindowsContentUpdater\WindowsContentUpdater.csproj 

是對S3庫破碎的東西?

+0

從例外,好像AWSSDK nugets

  • 啓動你需要Http客戶端庫。你能試試這個問題的指導嗎? http://stackoverflow.com/a/19411822/775544 –

  • +0

    我已經看過那個線程,並沒有幫助不幸。我覺得有什麼不對的亞馬遜SDK,因爲它甚至不會有一個萬能的Windows 10應用程序,添加引用後,我得到這些警告的負荷.. – Nick

    +0

    「嚴重\t代碼\t說明\t項目\t文件\t線工作\t抑制狀態 警告\t \t檢測到的程序包降級:Microsoft.NETCore.UniversalWindPlatform 5.2.2至5.1.0 WindowsContentUpdaterObjectLibrary(> = 1.0.0) - > AWSSDK.S3(> = 3.3.3) - > Microsoft.NETCore .UniversalWindowsPlatform(> = 5.2.2) WindowsContentUpdaterObjectLibrary(> = 1.0.0) - > Microsoft.NETCore.UniversalWindowsPlatform(> = 5.1.0)\t \t \t 0「 – Nick

    回答

    1

    有點晚了,但我設法修復它。

    1. 卸載所有加入的Microsoft.Net.Http的NuGet
    2. 添加AWSSDK.Core,S3,然後Cognito +你需要任何其他