2017-09-14 32 views
0

我試圖找到正確的版本配置,以便利用Xamarin.Facebook.Android軟件包,並且仍然能夠支持棒棒糖(最新版本似乎只支持牛軋糖) 。java.lang.IllegalArgumentException:已添加在Xamarin

我安裝了許多必要的軟件包,但現在我在構建時遇到了一個錯誤,似乎無法擺脫。

java.lang.IllegalArgumentException:已添加:Lbolts/AggregateException;

我的谷歌搜索表明這個錯誤通常是由一個包的倍數引起的。我無法弄清楚如何解決這個問題。

下面是該項目已安裝軟件包的列表。任何幫助將非常感激! (很抱歉的長度)

AWSSDK.APIGateway {3.3.8}
AWSSDK.CognitoIdentity {3.3.2.14}
AWSSDK.CognitoIdentityProvider {3.3.6}
AWSSDK.CognitoSync {3.3.1.23}
AWSSDK.Core {3.3.17.8}
AWSSDK.DynamoDBv2 {3.3.4.17}
AWSSDK.Extensions.CognitoAuthentication {0.9.1}
AWSSDK.IdentityManagement {3.3.4.3}
AWSSDK.S3 {3.3.10.4}
AWSSDK.SecurityToken {3.3.3}
AWSSDK.SimpleNotificationService {3.3.0.21}
AWSSDK.SQS {3.3.2.7}
螺栓{1.4.0.1}
Microsoft.Bcl {1.1.10}
Microsoft.Bcl.Build {} 1.0.21
Microsoft.CSharp {} 4.4.0
Microsoft.Net.Http {} 2.2.29
Microsoft.NETCore.Platforms {} 2.0.0
的Microsoft.Win32。原始人{4.3.0}
NETStandard.Library {2.0.0}
Newtonsoft.Json {10.0.3}
PCLCrypto {2.0.147}
PCLStorage {1.0.2}
PInvoke.BCrypt {0.3.2}
PInvoke.Kernel32 {0.3.2}
PInvoke.NCrypt {0.3.2}
PInvoke.Windows.Core {0.3.2}
SQLitePCLRaw.bundle_green {1.1.8}
SQLitePCLRaw.core {1.1.8}
SQLitePCLRaw .lib.e_sqlite3.android {1.1.8}
SQLitePCLRaw.provider.e_sqlite3.android {1.1.8}
System.AppContext {4.3.0}
{System.Collections中4.3.0}
System.Collections.Concurrent {4.3.0}
系統。 Collections.NonGeneric {4.3.0}
System.ComponentModel.TypeConverter {4.3。0}
System.Console {4.3.0}
System.Diagnostics.Debug {4.3.0}
System.Diagnostics.Tools {4.3.0}
System.Diagnostics.Tracing {4.3.0}
System.Globalization {} 4.3.0
System.Globalization.Calendars {} 4.3.0
System.IO {} 4.3.0
System.IO.Compression {} 4.3.0
System.IO.Compression。 ZipFile {4.3.0}
System.IO.FileSystem {4.3.0}
個 System.IO.FileSystem.Primitives {4.3.0}
System.Linq的{4,3,0}
System.Linq.Expressions {4.3.0}
System.Net.Http {4.3.2}
System.Net.Primitives {4.3.0}
的System.Net.Sockets {4.3.0}
System.ObjectModel {4.3.0}
的System.Reflection {4.3.0}
System.Reflection.Extensions { 4.3.0}
System.Reflection.Primitives {4.3.0}
System.Resources.ResourceManager {4.3.0}
System.Runtime {4.3.0}
System.Runtime.Extensions {4.3.0}
System.Runtime.Handles {4.3.0}
System.Runtime .InteropServices {4.3.0}
System.Runtime.InteropServices.RuntimeInformation {4.3.0}
System.Runtime.Numerics {4.3.0}
System.Runtime.Serialization.Formatters {4.3.0}
系統.Runtime.Serialization.Primitives {4.3.0}
System.Security.Cryptography.Algorith MS {4.3.0}
System.Security.Cryptography.Encoding {4.3.0}
System.Security.Cryptography.Primitives {4.3.0}
System.Security.Cryptography.X509Certificates {4.3.0}
System.Text.Encoding {} 4.3.0
System.Text.Encoding.Extensions {} 4.3.0
System.Text.RegularExpressions {} 4.3.0
的System.Threading {} 4.3.0
系統。 Threading.Tasks {4.3.0}
System.Threading.Timer {4.3.0}
System.Xml.ReaderWriter {4.3.0}
System.Xml.XDocument {4.3.0}
System.Xml.XmlDocument {4.3.0}
驗證{2.4.15}
Xamarin.Android.Support .Animated.Vector.Drawable {23.4.0.1}
Xamarin.Android.Support.CustomTabs {23.4.0.1}
Xamarin.Android.Support.v4 {23.4.0.1}
Xamarin.Android.Support.v7.AppCompat {23.4.0.1}
Xamarin.Android.Support.v7.CardView {23.4.0.1}
Xamarin.Android.Support.Vector.Drawable {23.4.0。1}
Xamarin.Facebook.Android {4.16.1}

回答

0

我似乎已經解決了這個問題。這是由於在安裝Xamarin.Facebook.Android之前安裝了包Xamarin.Android.Support.v4而導致的。

Unistalling Xamarin.Facebook.Android和Xamarin.Android.Support.v4(以及兩者的所有依賴項)然後重新安裝Xamarin.Facebook.Android清除了錯誤。

相關問題