Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Getting Error: java.lang.IllegalArgumentException: already added : Landroid/support/v4/accessibility

$
0
0

Getting error
"/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(3,3): Error: java.lang.IllegalArgumentException: already added : Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat; (App2.Droid)"
Here is the build

Touching "obj/Debug/android/bin/packaged_resources".
Target _CompileJava:
/usr/bin/javac -J-Dfile.encoding=UTF8 -d obj/Debug/android/bin/classes -classpath /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v7.1/mono.android.jar:obj/Debug/library_projects/FormsViewGroup/library_project_imports/formsviewgroup.jar:obj/Debug/library_projects/OkHttp/library_project_imports/okhttp-2.3.0-jar-with-dependencies.jar:obj/Debug/library_projects/Xamarin.Android.Support.Compat/library_project_imports/classes.jar:obj/Debug/library_projects/Xamarin.Android.Support.CustomTabs/library_project_imports/classes.jar:obj/Debug/library_projects/Xamarin.Azure.NotificationHubs.Android/library_project_imports/bin/classes.jar:obj/Debug/library_projects/Xamarin.Facebook/library_project_imports/AudienceNetwork.jar:obj/Debug/library_projects/Xamarin.Facebook/library_project_imports/bolts.jar:obj/Debug/library_projects/Xamarin.Facebook/library_project_imports/bin/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.Android.Support.Animated.Vector.Drawable/23.3.0.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.Android.Support.Design/23.3.0.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v4/23.3.0.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v4/23.3.0.0/embedded/libs/internal_impl-23.3.0.jar:/Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v7.AppCompat/23.3.0.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v7.CardView/23.3.0.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v7.MediaRouter/23.3.0.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v7.MediaRouter/23.3.0.0/embedded/libs/internal_impl-23.3.0.jar:/Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v7.RecyclerView/23.3.0.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.Android.Support.Vector.Drawable/23.3.0.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.GooglePlayServices.Ads/8.4.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.GooglePlayServices.Base/8.4.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.GooglePlayServices.Basement/8.4.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.GooglePlayServices.Gcm/8.4.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.GooglePlayServices.Measurement/8.4.0/embedded/classes.jar:obj/Debug/library_projects/Xamarin.Android.Support.Annotations/library_project_imports/support-annotations.jar -bootclasspath /Library/android-sdk-mac/platforms/android-25/android.jar -encoding UTF-8 "@/var/folders/7t/xrtdy5dn3fb9_gr6p8xyfknc0000gn/T/tmp41afb3a7.tmp"
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Creating "obj/Debug/_javac.stamp" because "AlwaysCreate" was specified.
Target _CompileToDalvikWithDx:
Creating directory "obj/Debug/proguard".
/usr/bin/java -Xmx1024m -jar /Library/android-sdk-mac/build-tools/25.0.2/lib/dx.jar --no-strict --dex --output=obj/Debug/android/bin obj/Debug/android/bin/classes /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v7.1/mono.android.jar obj/Debug/library_projects/FormsViewGroup/library_project_imports/formsviewgroup.jar obj/Debug/library_projects/OkHttp/library_project_imports/okhttp-2.3.0-jar-with-dependencies.jar obj/Debug/library_projects/Xamarin.Android.Support.Compat/library_project_imports/classes.jar obj/Debug/library_projects/Xamarin.Android.Support.CustomTabs/library_project_imports/classes.jar obj/Debug/library_projects/Xamarin.Azure.NotificationHubs.Android/library_project_imports/bin/classes.jar obj/Debug/library_projects/Xamarin.Facebook/library_project_imports/AudienceNetwork.jar obj/Debug/library_projects/Xamarin.Facebook/library_project_imports/bolts.jar obj/Debug/library_projects/Xamarin.Facebook/library_project_imports/bin/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.Android.Support.Animated.Vector.Drawable/23.3.0.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.Android.Support.Design/23.3.0.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v4/23.3.0.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v4/23.3.0.0/embedded/libs/internal_impl-23.3.0.jar /Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v7.AppCompat/23.3.0.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v7.CardView/23.3.0.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v7.MediaRouter/23.3.0.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v7.MediaRouter/23.3.0.0/embedded/libs/internal_impl-23.3.0.jar /Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v7.RecyclerView/23.3.0.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.Android.Support.Vector.Drawable/23.3.0.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.GooglePlayServices.Ads/8.4.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.GooglePlayServices.Base/8.4.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.GooglePlayServices.Basement/8.4.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.GooglePlayServices.Gcm/8.4.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.GooglePlayServices.Measurement/8.4.0/embedded/classes.jar
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoIcsImpl;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoStubImpl;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatJellyBeanMr2;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/animation/AnimatorCompatHelper;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/animation/AnimatorListenerCompat;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/animation/AnimatorProvider;

UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Translation has been interrupted
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:613)
    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
    at com.android.dx.command.dexer.Main.run(Main.java:277)
    at com.android.dx.command.dexer.Main.main(Main.java:245)
    at com.android.dx.command.Main.main(Main.java:106)
Caused by: java.lang.InterruptedException: Too many errors
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:605)
    ... 4 more
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1965,3): error : java.lang.IllegalArgumentException: already added :  Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat;

Done building target "_CompileToDalvikWithDx" in project "App2.Droid.csproj" -- FAILED.

Done building project "App2.Droid.csproj" -- FAILED.

Build FAILED.

layout1.xml : warning XA0101: @(Content) build action is not supported
/Users/apple/Projects/WeAtApps IOS/Backup/App2 - Android/App2/App2.Droid/App2.Droid.csproj(677,5): warning : App2.Droid.csproj is Multilingual build enabled, but the Multilingual App Toolkit is unavailable during the build. If building with Visual Studio, please check to ensure that toolkit is properly installed.

AdViewRenderer.cs(26,16,26,35): warning CS0114: 'AdViewRenderer.CreateNativeControl()' hides inherited member 'ViewRenderer<View, View>.CreateNativeControl()'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword.
MainActivity.cs(47,13,47,95): warning CS0618: 'MobileAds.Initialize(Context, string)' is obsolete: 'deprecated'
MainActivity.cs(114,30,114,37): warning CS0168: The variable 'ignored' is declared but never used
RegistrationIntentService.cs(69,30,69,31): warning CS0168: The variable 'e' is declared but never used
NotificationHubImpl.cs(149,34,149,35): warning CS0168: The variable 'e' is declared but never used
NotificationHubImpl.cs(182,34,182,35): warning CS0168: The variable 'e' is declared but never used
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2021,3): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Support.V4.OS.CancellationSignal+IOnCancelListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Support.V4.OS.CancellationSignal+IOnCancelListenerImplementor, Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : References to the type 'Android.Support.V4.OS.CancellationSignal.IOnCancelListenerImplementor' will refer to 'Android.Support.V4.OS.CancellationSignal+IOnCancelListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Support.V4.View.ActionProvider+ISubUiVisibilityListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Support.V4.View.ActionProvider+ISubUiVisibilityListenerImplementor, Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : References to the type 'Android.Support.V4.View.ActionProvider.ISubUiVisibilityListenerImplementor' will refer to 'Android.Support.V4.View.ActionProvider+ISubUiVisibilityListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Support.V4.View.ActionProvider+IVisibilityListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Support.V4.View.ActionProvider+IVisibilityListenerImplementor, Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : References to the type 'Android.Support.V4.View.ActionProvider.IVisibilityListenerImplementor' will refer to 'Android.Support.V4.View.ActionProvider+IVisibilityListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Support.V4.View.IOnApplyWindowInsetsListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Support.V4.View.IOnApplyWindowInsetsListenerImplementor, Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : References to the type 'Android.Support.V4.View.IOnApplyWindowInsetsListenerImplementor' will refer to 'Android.Support.V4.View.IOnApplyWindowInsetsListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Support.V4.View.IViewPropertyAnimatorListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Support.V4.View.IViewPropertyAnimatorListenerImplementor, Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : References to the type 'Android.Support.V4.View.IViewPropertyAnimatorListenerImplementor' will refer to 'Android.Support.V4.View.IViewPropertyAnimatorListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Support.V4.View.IViewPropertyAnimatorUpdateListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Support.V4.View.IViewPropertyAnimatorUpdateListenerImplementor, Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : References to the type 'Android.Support.V4.View.IViewPropertyAnimatorUpdateListenerImplementor' will refer to 'Android.Support.V4.View.IViewPropertyAnimatorUpdateListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Support.V4.View.MenuItemCompat+IOnActionExpandListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Support.V4.View.MenuItemCompat+IOnActionExpandListenerImplementor, Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : References to the type 'Android.Support.V4.View.MenuItemCompat.IOnActionExpandListenerImplementor' will refer to 'Android.Support.V4.View.MenuItemCompat+IOnActionExpandListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1965,3): error : java.lang.IllegalArgumentException: already added : Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat;
493 Warning(s)
1 Error(s)

Time Elapsed 00:01:01.76

---------------------- Done ----------------------


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>