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

Richy_GeorgeRichy_George INMember ✭✭✭

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 ----------------------

Best Answer

Answers

  • JimmyGarridoJimmyGarrido USXamarin Team Xamurai

    This might a compatibility issue with one of the packages. Can you share the contents of your packages.config file? Thanks!

  • Richy_GeorgeRichy_George INMember ✭✭✭
    edited June 8

    @JimmyGarrido

    Packages.config of portable

    <?xml version="1.0" encoding="utf-8"?> <packages> <package id="ExifLib.PCL" version="1.0.1" targetFramework="portable45-net45+win8+wpa81" /> <package id="Microsoft.Azure.Mobile.Client" version="3.0.3" targetFramework="portable45-net45+win8+wpa81" /> <package id="Microsoft.Bcl" version="1.1.10" targetFramework="portable45-net45+win8+wpa81" /> <package id="Microsoft.Bcl.Build" version="1.0.21" targetFramework="portable45-net45+win8+wpa81" /> <package id="Microsoft.Net.Http" version="2.2.29" targetFramework="portable45-net45+win8+wpa81" /> <package id="modernhttpclient" version="2.4.2" targetFramework="portable45-net45+win8+wpa81" /> <package id="Newtonsoft.Json" version="9.0.1" targetFramework="portable45-net45+win8+wpa81" /> <package id="PCLCrypto" version="2.0.147" targetFramework="portable45-net45+win8+wpa81" /> <package id="PInvoke.BCrypt" version="0.3.2" targetFramework="portable45-net45+win8+wpa81" /> <package id="PInvoke.Kernel32" version="0.3.2" targetFramework="portable45-net45+win8+wpa81" /> <package id="PInvoke.NCrypt" version="0.3.2" targetFramework="portable45-net45+win8+wpa81" /> <package id="PInvoke.Windows.Core" version="0.3.2" targetFramework="portable45-net45+win8+wpa81" /> <package id="Plugin.Share" version="5.0.0" targetFramework="portable45-net45+win8+wpa81" /> <package id="sqlite-net-pcl" version="1.2.0" targetFramework="portable45-net45+win8+wpa81" /> <package id="SQLitePCLRaw.bundle_green" version="1.0.1" targetFramework="portable45-net45+win8+wpa81" /> <package id="SQLitePCLRaw.core" version="1.0.1" targetFramework="portable45-net45+win8+wpa81" /> <package id="System.Net.Http" version="4.3.0" targetFramework="portable45-net45+win8+wpa81" /> <package id="Validation" version="2.2.8" targetFramework="portable45-net45+win8+wpa81" /> <package id="Xam.Plugin.Connectivity" version="2.3.0" targetFramework="portable45-net45+win8+wpa81" /> <package id="Xam.Plugin.Contacts" version="2.2.0.37-beta" targetFramework="portable45-net45+win8+wpa81" /> <package id="Xam.Plugin.Media" version="2.6.2" targetFramework="portable45-net45+win8+wpa81" /> <package id="Xam.Plugins.Forms.ImageCircle" version="1.8.0.5" targetFramework="portable45-net45+win8+wpa81" /> <package id="Xam.Plugins.Messaging" version="3.2.1" targetFramework="portable45-net45+win8+wpa81" /> <package id="Xam.Plugins.Notifier" version="2.0.2" targetFramework="portable45-net45+win8+wpa81" /> <package id="Xam.Plugins.Settings" version="2.5.1.0" targetFramework="portable45-net45+win8+wpa81" /> <package id="Xamarin.Auth" version="1.5.0" targetFramework="portable45-net45+win8+wpa81" /> <package id="Xamarin.Auth.XamarinForms" version="1.5.0" targetFramework="portable45-net45+win8+wpa81" /> <package id="Xamarin.Facebook" version="4.4.0.2" targetFramework="portable45-net45+win8+wpa81" /> <package id="Xamarin.Forms" version="2.3.4.247" targetFramework="portable45-net45+win8+wpa81" /> </packages>

    Packages.config of Droid

    <?xml version="1.0" encoding="utf-8"?> <packages> <package id="ExifLib.PCL" version="1.0.1" targetFramework="monoandroid60" /> <package id="Microsoft.Azure.Mobile.Client" version="3.0.3" targetFramework="monoandroid50" /> <package id="Microsoft.Bcl" version="1.1.10" targetFramework="monoandroid50" /> <package id="Microsoft.Bcl.Build" version="1.0.21" targetFramework="monoandroid50" /> <package id="Microsoft.Net.Http" version="2.2.29" targetFramework="monoandroid50" /> <package id="modernhttpclient" version="2.4.2" targetFramework="monoandroid60" /> <package id="Newtonsoft.Json" version="9.0.1" targetFramework="monoandroid50" /> <package id="PCLCrypto" version="2.0.147" targetFramework="monoandroid70" /> <package id="PInvoke.BCrypt" version="0.3.2" targetFramework="monoandroid70" /> <package id="PInvoke.Kernel32" version="0.3.2" targetFramework="monoandroid70" /> <package id="PInvoke.NCrypt" version="0.3.2" targetFramework="monoandroid70" /> <package id="PInvoke.Windows.Core" version="0.3.2" targetFramework="monoandroid70" /> <package id="Plugin.CurrentActivity" version="1.0.1" targetFramework="monoandroid70" /> <package id="Plugin.Permissions" version="1.2.1" targetFramework="monoandroid70" /> <package id="Plugin.Share" version="5.0.0" targetFramework="monoandroid60" /> <package id="sqlite-net-pcl" version="1.2.0" targetFramework="monoandroid60" /> <package id="SQLitePCLRaw.bundle_green" version="1.0.1" targetFramework="monoandroid60" /> <package id="SQLitePCLRaw.core" version="1.0.1" targetFramework="monoandroid60" /> <package id="SQLitePCLRaw.lib.e_sqlite3.android" version="1.0.1" targetFramework="monoandroid60" /> <package id="SQLitePCLRaw.provider.e_sqlite3.android" version="1.0.1" targetFramework="monoandroid60" /> <package id="System.Net.Http" version="4.3.0" targetFramework="monoandroid60" /> <package id="Validation" version="2.2.8" targetFramework="monoandroid70" /> <package id="Xam.Plugin.Connectivity" version="2.3.0" targetFramework="monoandroid60" /> <package id="Xam.Plugin.Contacts" version="2.2.0.37-beta" targetFramework="monoandroid70" /> <package id="Xam.Plugin.Media" version="2.6.2" targetFramework="monoandroid70" /> <package id="Xam.Plugins.Forms.ImageCircle" version="1.8.0.5" targetFramework="monoandroid60" /> <package id="Xam.Plugins.Messaging" version="3.2.1" targetFramework="monoandroid70" /> <package id="Xam.Plugins.Notifier" version="2.0.2" targetFramework="monoandroid60" /> <package id="Xam.Plugins.Settings" version="2.5.1.0" targetFramework="monoandroid70" /> <package id="Xamarin.Android.Support.Animated.Vector.Drawable" version="23.3.0" targetFramework="monoandroid60" /> <package id="Xamarin.Android.Support.Annotations" version="25.3.1" targetFramework="monoandroid71" /> <package id="Xamarin.Android.Support.Compat" version="25.3.1" targetFramework="monoandroid71" /> <package id="Xamarin.Android.Support.CustomTabs" version="25.3.1" targetFramework="monoandroid71" /> <package id="Xamarin.Android.Support.Design" version="23.3.0" targetFramework="monoandroid60" /> <package id="Xamarin.Android.Support.v4" version="23.3.0" targetFramework="monoandroid60" /> <package id="Xamarin.Android.Support.v7.AppCompat" version="23.3.0" targetFramework="monoandroid60" /> <package id="Xamarin.Android.Support.v7.CardView" version="23.3.0" targetFramework="monoandroid60" /> <package id="Xamarin.Android.Support.v7.MediaRouter" version="23.3.0" targetFramework="monoandroid60" /> <package id="Xamarin.Android.Support.v7.RecyclerView" version="23.3.0" targetFramework="monoandroid60" /> <package id="Xamarin.Android.Support.Vector.Drawable" version="23.3.0" targetFramework="monoandroid60" /> <package id="Xamarin.Auth" version="1.5.0" targetFramework="monoandroid71" /> <package id="Xamarin.Auth.XamarinForms" version="1.5.0" targetFramework="monoandroid71" /> <package id="Xamarin.Azure.NotificationHubs.Android" version="0.4.0" targetFramework="monoandroid50" /> <package id="Xamarin.Build.Download" version="0.4.3" targetFramework="monoandroid71" /> <package id="Xamarin.Facebook" version="4.4.0.2" targetFramework="monoandroid60" /> <package id="Xamarin.Facebook.Android" version="4.4.0.1" targetFramework="monoandroid60" /> <package id="Xamarin.Forms" version="2.3.4.247" targetFramework="monoandroid71" /> <package id="Xamarin.Forms.Pages" version="2.3.0.38-pre2" targetFramework="monoandroid60" /> <package id="Xamarin.Forms.Theme.Base" version="1.0.0.43-pre1" targetFramework="monoandroid60" /> <package id="Xamarin.Forms.Theme.Dark" version="1.0.0.43-pre1" targetFramework="monoandroid60" /> <package id="Xamarin.GooglePlayServices.Ads" version="29.0.0.2" targetFramework="monoandroid71" /> <package id="Xamarin.GooglePlayServices.Base" version="29.0.0.2" targetFramework="monoandroid60" /> <package id="Xamarin.GooglePlayServices.Basement" version="29.0.0.2" targetFramework="monoandroid60" /> <package id="Xamarin.GooglePlayServices.Gcm" version="29.0.0.2" targetFramework="monoandroid60" /> <package id="Xamarin.GooglePlayServices.Measurement" version="29.0.0.2" targetFramework="monoandroid60" /> </packages>

  • moljacmoljac HRBeta ✭✭✭

    @Richy_George

    1. delete bin/and obj/
      compile
    2. update Xamarin.Android.Support.CustomTabs to latest
      delete bin/ obj/
      compile
    3. update Xamarin.Android.Support.* to latest
      delete bin/ obj/
      compile
  • Richy_GeorgeRichy_George INMember ✭✭✭

    @moljac

    I followed your steps but error still remain.

  • moljacmoljac HRBeta ✭✭✭

    Can you remove all packages and re-add them again?

  • Richy_GeorgeRichy_George INMember ✭✭✭

    @moljac

    Sure. But still the error exists

  • Richy_GeorgeRichy_George INMember ✭✭✭

    @moljac
    I removed all the packages from droid, then remove the bin and obj folders, then add the xamarin.forms(2.3.4.247) to droid project and build it does not show any error but after that i added xamarin.auth(1.5.0) and removed the bin and obj, later i try to build the error re-appears.

  • Richy_GeorgeRichy_George INMember ✭✭✭

    @moljac
    Some how i managed to avoid the above errors by adding packages one by one, while i try to add some of packages are and components I'm getting this error.
    "/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(3,3): Error MSB6006: "java" exited with code 2. (MSB6006) (App2.Droid)"

    The build output follows

    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1296,2): warning XA0106: Skipping App2.Droid.Resource.String.library_name. Please check that your Nuget Package versions are compatible.
    

    Done building target "_UpdateAndroidResgen" in project "App2.Droid.csproj".
    Target _GenerateJavaDesignerForComponent:
    Creating "obj/Debug/Component.R.cs.flag" because "AlwaysCreate" was specified.
    Target GenerateTargetFrameworkMonikerAttribute:
    Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
    Target _CoreXamlG:
    Skipping target "_CoreXamlG" because it has no inputs.
    Target CoreCompile:
    /Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/4.5/csc.exe /noconfig /nowarn:1701,1702,2008 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE;XAMARIN_ANDROID_v1_0;MOBILE;ANDROID;ANDROID_1;ANDROID_2;ANDROID_3;ANDROID_4;ANDROID_5;ANDROID_6;ANDROID_7;ANDROID_8;ANDROID_9;ANDROID_10;ANDROID_11;ANDROID_12;ANDROID_13;ANDROID_14;ANDROID_15;ANDROID_16;ANDROID_17;ANDROID_18;ANDROID_19;ANDROID_20;ANDROID_21;ANDROID_22;ANDROID_23;ANDROID_24;ANDROID_25 /errorendlocation /preferreduilang:en-US /reference:"/Users/apple/Projects/WeAtApps IOS/Backup/App2 -
    Done building target "CoreCompile" in project "App2.Droid.csproj".
    Target XamlC:
    Compiling Xaml

    Assembly: obj/Debug/App2.Droid.dll
    ReferencePath:  /Users/apple/Projects/WeAtApps IOS/Backup/App2 - Android/App2/App2/bin/Debug/App2.dll;/Users/apple/Projects/WeAtApps IOS/Backup/App2 - Android/packages/Xamarin.Forms.2.3.4.247/lib/MonoAndroid10/FormsViewGroup.dll;/Users/apple/Projects/WeAtApps IOS/Backup/App2 - Android/packages/Xam.Plugins.Forms.ImageCircle.1.8.0.5/lib/MonoAndroid10/ImageCircle.Forms.Plugin.Abstractions.dll;/Users/apple/Projects/WeAtApps IOS/Backup/App2 - Android/packages/Xam.Plugins.Forms.ImageCircle.1.8.0.5/lib/MonoAndroid10/ImageCircle.Forms.Plugin.Android.dll;/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Java.Interop.dll;/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Microsoft.CSharp.dll;/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v7.1/Mono.Android.dll;/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v2.3/Mono.Android.Export.dll;/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/mscorlib.dll;/Users/apple/Projects/WeAtApps IOS/Backup/App2 - Android/packages/Newtonsoft.Json.9.0.1/lib/portable-net45+wp80+win8+wpa81/Newtonsoft.Json.dll;/Users/apple/Projects/WeAtApps IOS/Backup/App2 - 
    

    Android/App2/App2.Droid/obj/Debug/library_projects/Xamarin.Android.Support.v7.AppCompat/library_project_imports/res/layout-v11/notification_template_big_media_narrow_custom.xml
    Processing: /Users/apple/Projects/WeAtApps IOS/Backup/App2 - Android/App2/App2.Droid/obj/Debug/library_projects/Xamarin.Android.Support.v7.AppCompat/library_project_imports/Android/App2/App2.Droid/obj/Debug/library_projects/Xamarin.Android.Support.v7.AppCompat/library_project_imports/res/values-et-rEE/values-et-rEE.xml
    Android/App2/App2.Droid/obj/Debug/library_projects/Xamarin.Android.Support.v7.AppCompat/library_project_imports/Android/App2/App2.Droid/obj/Debug/library_projects/Xamarin.Android.Support.v7.AppCompat/library_project_imports/res/values-large-v4/values-large-v4.xml
    Android/App2/App2.Droid/obj/Debug/library_projects/Xamarin.Android.Support.v7.AppCompat/library_project_imports/Android/App2/App2.Droid/obj/Debug/library_projects/Xamarin.Android.Support.v7.AppCompat/library_project_imports/res/values-sl/values-sl.xml
    Android/App2/App2.Droid/obj/Debug/library_projects/Xamarin.Android.Support.v7.AppCompat/library_project_imports/Android/App2/App2.Droid/obj/Debug/library_projects/Xamarin.Android.Support.v7.AppCompat/library_project_imports/res/values-v14/values-v14.xml

    Android/App2/App2.Droid/obj/Debug/library_projects/Xamarin.Azure.NotificationHubs.Android/library_project_imports/res/values/values.xml
    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/Xamarin.Android.Support.Animated.Vector.Drawable/library_project_imports/classes.jar:obj/Debug/library_projects/Xamarin.Android.Support.Compat/library_project_imports/classes.jar:obj/Debug/library_projects/Xamarin.Android.Support.Core.UI/library_project_imports/classes.jar:obj/Debug/library_projects/Xamarin.Android.Support.Core.Utils/library_project_imports/classes.jar:obj/Debug/library_projects/Xamarin.Android.Support.CustomTabs/library_project_imports/classes.jar:obj/Debug/library_projects/Xamarin.Android.Support.Design/library_project_imports/classes.jar:obj/Debug/library_projects/Xamarin.Android.Support.Fragment/library_project_imports/classes.jar:obj/Debug/library_projects/Xamarin.Android.Support.Media.Compat/library_project_imports/classes.jar:obj/Debug/library_projects/Xamarin.Android.Support.Transition/library_project_imports/classes.jar:obj/Debug/library_projects/Xamarin.Android.Support.Vector.Drawable/library_project_imports/classes.jar:obj/Debug/library_projects/Xamarin.Android.Support.v4/library_project_imports/classes.jar:obj/Debug/library_projects/Xamarin.Android.Support.v7.AppCompat/library_project_imports/classes.jar:obj/Debug/library_projects/Xamarin.Android.Support.v7.CardView/library_project_imports/classes.jar:obj/Debug/library_projects/Xamarin.Android.Support.v7.MediaRouter/library_project_imports/classes.jar:obj/Debug/library_projects/Xamarin.Android.Support.v7.Palette/library_project_imports/classes.jar:obj/Debug/library_projects/Xamarin.Android.Support.v7.RecyclerView/library_project_imports/classes.jar:obj/Debug/library_projects/Xamarin.Azure.NotificationHubs.Android/library_project_imports/bin/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/tmp311721c3.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/Xamarin.Android.Support.Animated.Vector.Drawable/library_project_imports/classes.jar obj/Debug/library_projects/Xamarin.Android.Support.Compat/library_project_imports/classes.jar obj/Debug/library_projects/Xamarin.Android.Support.Core.UI/library_project_imports/classes.jar obj/Debug/library_projects/Xamarin.Android.Support.Core.Utils/library_project_imports/classes.jar obj/Debug/library_projects/Xamarin.Android.Support.CustomTabs/library_project_imports/classes.jar obj/Debug/library_projects/Xamarin.Android.Support.Design/library_project_imports/classes.jar obj/Debug/library_projects/Xamarin.Android.Support.Fragment/library_project_imports/classes.jar obj/Debug/library_projects/Xamarin.Android.Support.Media.Compat/library_project_imports/classes.jar obj/Debug/library_projects/Xamarin.Android.Support.Transition/library_project_imports/classes.jar obj/Debug/library_projects/Xamarin.Android.Support.Vector.Drawable/library_project_imports/classes.jar obj/Debug/library_projects/Xamarin.Android.Support.v4/library_project_imports/classes.jar obj/Debug/library_projects/Xamarin.Android.Support.v7.AppCompat/library_project_imports/classes.jar obj/Debug/library_projects/Xamarin.Android.Support.v7.CardView/library_project_imports/classes.jar obj/Debug/library_projects/Xamarin.Android.Support.v7.MediaRouter/library_project_imports/classes.jar obj/Debug/library_projects/Xamarin.Android.Support.v7.Palette/library_project_imports/classes.jar obj/Debug/library_projects/Xamarin.Android.Support.v7.RecyclerView/library_project_imports/classes.jar obj/Debug/library_projects/Xamarin.Azure.NotificationHubs.Android/library_project_imports/bin/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

    trouble writing output: Too many field references: 67583; max is 65536.
    You may try using --multi-dex option.
    References by package:
         3 android.accounts
        31 android.app
         1 android.content
        39 android.content.pm
        10 android.content.res
         3 android.database
        42 android.graphics
         1 android.location
         2 android.media
         1 android.media.browse
         2 android.net
        24 android.os
         3 android.print
         1 android.provider
         8 android.runtime
         1 android.support.annotation
      2344 android.support.compat
      2344 android.support.coreui
      2344 android.support.coreutils
      2448 android.support.customtabs
      2344 android.support.design
       107 android.support.design.internal
       700 android.support.design.widget
      2344 android.support.fragment
      2503 android.support.graphics.drawable
      2344 android.support.graphics.drawable.animated
      2344 android.support.mediacompat
      2523 android.support.transition
      2344 android.support.v4
        13 android.support.v4.accessibilityservice
        17 android.support.v4.animation
       885 android.support.v4.app
       114 android.support.v4.content
         1 android.support.v4.content.pm
         1 android.support.v4.content.res
        11 android.support.v4.graphics
        41 android.support.v4.graphics.drawable
         4 android.support.v4.hardware.display
        12 android.support.v4.hardware.fingerprint
        10 android.support.v4.internal.view
       388 android.support.v4.media
       379 android.support.v4.media.session
        10 android.support.v4.net
        19 android.support.v4.os
        63 android.support.v4.print
        10 android.support.v4.provider
        55 android.support.v4.text
         6 android.support.v4.text.util
       118 android.support.v4.util
       434 android.support.v4.view
       138 android.support.v4.view.accessibility
         8 android.support.v4.view.animation
       495 android.support.v4.widget
       605 android.support.v7.app
      2344 android.support.v7.appcompat
      2344 android.support.v7.cardview
         8 android.support.v7.content.res
        88 android.support.v7.graphics
        18 android.support.v7.graphics.drawable
       437 android.support.v7.media
      2344 android.support.v7.mediarouter
      2344 android.support.v7.palette
      2344 android.support.v7.recyclerview
         1 android.support.v7.text
         2 android.support.v7.transition
       124 android.support.v7.util
        77 android.support.v7.view
       249 android.support.v7.view.menu
      1483 android.support.v7.widget
        89 android.support.v7.widget.helper
         1 android.support.v7.widget.util
         5 android.text
         1 android.text.util
         2 android.transition
        13 android.util
        19 android.view
         8 android.view.accessibility
         1 android.view.inputmethod
         5 android.webkit
        14 android.widget
      2338 app2.droid
    
         4 com.google.android.gms.common.server
        12 com.google.android.gms.common.server.converter
        33 com.google.android.gms.common.server.response
    
         4 java.util.concurrent
         2 md50575d4ab16fc336ade1879255cf984b5
         4 md523429f28dd02a990195829ee70069e82
        36 md5270abb39e60627f0f200893b490a1ade
         2 md531e46b185997765898cde66852db2a40
         8 md531f8cc8d4d39b2fa02686ee0eb368905
        22 md53c585be971e02235139fd1aef11fc0c1
         4 md53d5495542e8a0022121c6287b3d4a5ef
         2 md54b33d38a21a950def308c8bb6f6e0d30
         2 md5712d199f8d3b5f8e54019b9c57a3e3ca
         4 md59f70a99687498e7ba187118950981d26
         2 md5a3e164e78ade0c22cefea770ddd0bc49
         2 md5b45e996e2ca0ae5ccf67ed6721558f59
       160 md5b60ffeb829f638581ab2bb9b1a7f4f3f
         2 md5e7cc7cbcbbb0a5ac341759895d46a010
         2 md5ec31a990cf5451cf96df51948e17f720
         2 md5f1f2ae2fe0ab950e8331c1becdda17fb
        14 md5f572a367545c726927cb2f01519d90dd
         6 mono
         1 mono.android
    
         2 mono.android.media.tv
         2 mono.android.net
         6 mono.android.net.nsd
         2 mono.android.net.sip
        18 mono.android.net.wifi.p2p
         2 mono.android.nfc
        10 mono.android.os
        10 mono.android.preference
         2 mono.android.renderscript
         6 mono.android.runtime
         6 mono.android.sax
         2 mono.android.speech
         4 mono.android.speech.tts
        12 mono.android.support.design.widget
         2 mono.android.support.transition
         4 mono.android.support.v4.app
         4 mono.android.support.v4.content
         2 mono.android.support.v4.media.session
         2 mono.android.support.v4.os
        18 mono.android.support.v4.view
         4 mono.android.support.v4.view.accessibility
    
         4 mono.java.lang
         2 mono.java.util
         2 mono.javax.xml.transform
         2 opentk
         2 opentk.platform.android
         2 opentk_1_0
         2 opentk_1_0.platform.android
    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1965,3): error MSB6006: "java" exited with code 2.
    

    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(565,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.
    /Users/apple/Projects/WeAtApps IOS/Backup/App2 - Android/packages/Microsoft.Bcl.Build.1.0.21/build/Microsoft.Bcl.Build.targets(243,5): warning : All projects referencing App2.csproj must install nuget package Microsoft.Bcl.Build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317569.
    /Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(1980,5): warning MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.
    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1296,2): warning XA0106: Skipping App2.Droid.Resource.String.library_name. Please check that your Nuget Package versions are compatible.
    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(46,13,46,95): warning CS0618: 'MobileAds.Initialize(Context, string)' is obsolete: 'deprecated'
    MainActivity.cs(113,30,113,37): warning CS0168: The variable 'ignored' is declared but never used
    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1965,3): error MSB6006: "java" exited with code 2.
    8 Warning(s)
    1 Error(s)

  • Richy_GeorgeRichy_George INMember ✭✭✭

    @moljac
    Thanks for the reply, Do you know is there any compatibility issue between xamarin.googleplayservices.gcm and xamarin.android.support.* v25.3.1, coz I'm getting null from the InstanceID.GetInstance(this) ?

  • AndyGill.1791AndyGill.1791 USMember

    I found that 4.0 is what's broken and 3.1.0 works. You can't, however, just downgrade. I had to undo all changes to my project and then install only 3.1.0 or below. One of the changes to 4.0 is the breaking change and it's not the library itself; I didn't track down which one did it.

  • GrahamHickson.4124GrahamHickson.4124 USMember ✭✭

    Are there any updates on solutions for this issue as I am currently experiencing it myself.

    In my search I've found that installing Plugin.Permissions pulls in new dependancies by way of Support.Core.Utils and Xamarin.Build.Download. Core.Utils requires a different version of Compat which installs alongside without replacing other. This seems to cause duplicate type mappings.

  • NTL_DevNTL_Dev USMember ✭✭✭

    After install Geolocator, I get this error "java.lang.IllegalArgumentException: already added : Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat;"

  • Terence.6876Terence.6876 USMember ✭✭

    Hi
    I don't really see any working solution from the posts/comments above.
    I am now experiencing the same error after I installed Xam.Plugin.Geolocator.4.0.1 via Nuget Package Manager. Can anyone please help?
    Thank you
    Terence

  • DaleHollonDaleHollon USMember

    Hi I'm receiving a similiar error with:
    VS 2017 v15.3.3
    Xamarin 4.6.0.299 (b63523e27)
    Xamarin.Android SDK 7.4.0.21 (2851083)
    Xamarin.iOS and Xamarin.Mac SDK 10.12.0.20 (80b8487)

    I received an error initially that it could not find System.net.http, which was there before the reboot. Everything was compiling and running fine for 2 days. Now I'm getting this error after adding the package again:
    Project File Line Suppression State Error java.lang.IllegalArgumentException: already added : Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat; VTMSamples.Android

    Thank you,
    Dale

  • I m Having the same problem
    Severity Code Description Project File Line Suppression State
    Error java.lang.IllegalArgumentException: already added : Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat; TestProject.Android
    Thank you ,
    Pan

  • AnthonyRamirezAnthonyRamirez USUniversity ✭✭✭

    @PandukaWeerasekara

    I just ran into this issue.

    If you still happen to have the issue, I found that one of my packages had not been updated (GooglePlayService in my case).

    Once updated it worked.

  • voodarkvoodark USMember

    @moljac said:
    Try turning on MultiDex.

    As @moljac said, MultiDex solved the issue. :smile:

Sign In or Register to comment.