【问题标题】:java.lang.IllegalArgumentException: already added In Xamarinjava.lang.IllegalArgumentException:已在 Xamarin 中添加
【发布时间】:2017-09-15 05:24:51
【问题描述】:

我正在尝试找到正确的版本配置,以便利用 Xamarin.Facebook.Android 包并且仍然能够支持 Lollipop(最新版本似乎只支持 Nougat)。

我安装了许多必要的软件包,但现在我在构建时遇到了一个我似乎无法摆脱的错误。

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.Primitives {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}
System.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}
System.Runtime.Serialization.Primitives {4.3.0}
System.Security.Cryptography.Algorithms {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}
System.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}

【问题讨论】:

    标签: c# xamarin.android


    【解决方案1】:

    我似乎已经解决了这个问题。这是由于在安装 Xamarin.Facebook.Android 之前安装了包 Xamarin.Android.Support.v4 造成的。

    卸载 Xamarin.Facebook.Android 和 Xamarin.Android.Support.v4(以及两者的所有依赖项),然后重新安装 Xamarin.Facebook.Android 清除错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-01
      • 2012-02-28
      • 1970-01-01
      • 1970-01-01
      • 2012-01-16
      相关资源
      最近更新 更多