Forum Xamarin.Forms

xam.Plugin.GeoLocator does not work

RSquaredRSquared USMember ✭✭

hi, I added xam.Plugin.GeoLocator inorder to get gps coordinates. But in Droid project I keep getting following error.

"java.lang.IllegalArgumentException: already added : Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat; Medarbeideren.Droid".
Did many solutions suggested. reinstalling nuget packages.change target API levels,etc. But the error is still the same. Any solutions for this?

Posts

  • RSquaredRSquared USMember ✭✭
    edited December 2017

    Packages.config on Droid

    <packages>
      <package id="akavache" version="5.0.0" targetFramework="monoandroid71" />
      <package id="akavache.core" version="5.0.0" targetFramework="monoandroid71" />
      <package id="akavache.sqlite3" version="5.0.0" targetFramework="monoandroid71" />
      <package id="EngineIoClientDotNet" version="0.9.22" targetFramework="monoandroid71" />
      <package id="HockeySDK.Xamarin" version="5.0.0" targetFramework="monoandroid71" />
      <package id="Microsoft.CSharp" version="4.4.0" targetFramework="monoandroid80" />
      <package id="Microsoft.NETCore.Platforms" version="2.0.0" targetFramework="monoandroid80" />
      <package id="Microsoft.Win32.Primitives" version="4.3.0" targetFramework="monoandroid71" />
      <package id="modernhttpclient" version="2.4.2" targetFramework="monoandroid70" />
      <package id="NETStandard.Library" version="2.0.1" targetFramework="monoandroid80" />
      <package id="Newtonsoft.Json" version="10.0.2" targetFramework="monoandroid71" />
      <package id="PCLCrypto" version="2.0.147" targetFramework="monoandroid60" />
      <package id="PInvoke.BCrypt" version="0.3.2" targetFramework="monoandroid60" />
      <package id="PInvoke.Kernel32" version="0.3.2" targetFramework="monoandroid60" />
      <package id="PInvoke.NCrypt" version="0.3.2" targetFramework="monoandroid60" />
      <package id="PInvoke.Windows.Core" version="0.3.2" targetFramework="monoandroid60" />
      <package id="Plugin.CurrentActivity" version="1.0.1" targetFramework="monoandroid71" />
      <package id="Plugin.Permissions" version="2.1.0" targetFramework="monoandroid71" />
      <package id="Rg.Plugins.Popup" version="1.0.4" targetFramework="monoandroid71" />
      <package id="Rx-Core" version="2.2.5" targetFramework="monoandroid71" />
      <package id="Rx-Interfaces" version="2.2.5" targetFramework="monoandroid71" />
      <package id="Rx-Linq" version="2.2.5" targetFramework="monoandroid71" />
      <package id="Rx-Main" version="2.2.5" targetFramework="monoandroid71" />
      <package id="Rx-PlatformServices" version="2.2.5" targetFramework="monoandroid71" />
      <package id="SkiaSharp" version="1.59.2" targetFramework="monoandroid80" />
      <package id="SkiaSharp.Views" version="1.59.2" targetFramework="monoandroid80" />
      <package id="SkiaSharp.Views.Forms" version="1.59.2" targetFramework="monoandroid80" />
      <package id="SocketIoClientDotNet" version="0.9.13" targetFramework="monoandroid71" />
      <package id="Splat" version="1.6.0" targetFramework="monoandroid71" />
      <package id="SQLite.Net.Core-PCL" version="3.1.1" targetFramework="monoandroid70" />
      <package id="SQLite.Net-PCL" version="3.1.1" targetFramework="monoandroid70" />
      <package id="SQLitePCLRaw.bundle_e_sqlite3" version="1.1.0" targetFramework="monoandroid71" />
      <package id="SQLitePCLRaw.core" version="1.1.0" targetFramework="monoandroid71" />
      <package id="SQLitePCLRaw.lib.e_sqlite3.android" version="1.1.0" targetFramework="monoandroid71" />
      <package id="SQLitePCLRaw.provider.e_sqlite3.android" version="1.1.0" targetFramework="monoandroid71" />
      <package id="SuaveControls.FloatingActionButton" version="2017.10.17" targetFramework="monoandroid71" />
      <package id="System.AppContext" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Collections" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Collections.Concurrent" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.ComponentModel.TypeConverter" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Console" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Diagnostics.Debug" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Diagnostics.Tools" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Diagnostics.Tracing" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Globalization" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Globalization.Calendars" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.IO" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.IO.Compression" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.IO.Compression.ZipFile" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.IO.FileSystem" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.IO.FileSystem.Primitives" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Linq" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Linq.Expressions" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Net.Http" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Net.Primitives" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Net.Sockets" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.ObjectModel" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Reflection" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Reflection.Extensions" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Reflection.Primitives" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Resources.ResourceManager" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Runtime" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Runtime.Extensions" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Runtime.Handles" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Runtime.InteropServices" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Runtime.InteropServices.RuntimeInformation" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Runtime.Numerics" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Runtime.Serialization.Formatters" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Runtime.Serialization.Primitives" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Security.Cryptography.Algorithms" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Security.Cryptography.Encoding" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Security.Cryptography.Primitives" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Security.Cryptography.X509Certificates" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Text.Encoding" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Text.Encoding.Extensions" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Text.RegularExpressions" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Threading" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Threading.Tasks" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Threading.Timer" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Xml.ReaderWriter" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Xml.XDocument" version="4.3.0" targetFramework="monoandroid71" />
      <package id="System.Xml.XmlDocument" version="4.3.0" targetFramework="monoandroid71" />
      <package id="Telerik.UI.for.Xamarin" version="2017.3.926.1" targetFramework="monoandroid71" />
      <package id="Telerik.UI.for.Xamarin.Trial" version="2017.2.818.1" targetFramework="monoandroid71" />
      <package id="UXDivers.GorillaPlayer.Common" version="0.9.1.2" targetFramework="monoandroid71" />
      <package id="UXDivers.GorillaPlayer.SDK" version="1.1.0.4" targetFramework="monoandroid71" />
      <package id="Validation" version="2.2.8" targetFramework="monoandroid60" />
      <package id="WebSocket4Net" version="0.14.1" targetFramework="monoandroid71" />
      <package id="Xam.Plugin.Geolocator" version="4.1.3" targetFramework="monoandroid71" />
      <package id="Xam.Plugins.Settings" version="3.0.1" targetFramework="monoandroid71" />
      <package id="Xamarin.Android.Support.Animated.Vector.Drawable" version="23.3.0" targetFramework="monoandroid71" />
      <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.Design" version="23.3.0" targetFramework="monoandroid71" />
      <package id="Xamarin.Android.Support.v4" version="23.3.0" targetFramework="monoandroid71" />
      <package id="Xamarin.Android.Support.v7.AppCompat" version="23.3.0" targetFramework="monoandroid71" />
      <package id="Xamarin.Android.Support.v7.CardView" version="23.3.0" targetFramework="monoandroid71" />
      <package id="Xamarin.Android.Support.v7.MediaRouter" version="23.3.0" targetFramework="monoandroid71" />
      <package id="Xamarin.Android.Support.v7.RecyclerView" version="23.3.0" targetFramework="monoandroid71" />
      <package id="Xamarin.Android.Support.v8.RenderScript" version="23.3.0" targetFramework="monoandroid71" />
      <package id="Xamarin.Android.Support.Vector.Drawable" version="23.3.0" targetFramework="monoandroid71" />
      <package id="Xamarin.Build.Download" version="0.4.3" targetFramework="monoandroid71" />
      <package id="Xamarin.Forms" version="2.4.0.38779" targetFramework="monoandroid80" />
    </packages>
    

    Packages.config on Portable

        <packages>
          <package id="akavache" version="5.0.0" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="akavache.core" version="5.0.0" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="akavache.sqlite3" version="5.0.0" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="HockeySDK.Xamarin" version="5.0.0" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="IdentityModel" version="1.13.0" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="IdentityModel.OidcClient" version="1.7.0" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="Microsoft.Bcl" version="1.1.10" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="Microsoft.Net.Http" version="2.2.29" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="modernhttpclient" version="2.4.2" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="Newtonsoft.Json" version="10.0.2" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="PCLCrypto" version="2.0.147" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="Rg.Plugins.Popup" version="1.0.4" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="Rx-Core" version="2.2.5" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="Rx-Interfaces" version="2.2.5" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="Rx-Linq" version="2.2.5" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="Rx-Main" version="2.2.5" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="Rx-PlatformServices" version="2.2.5" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="ServiceStack.Interfaces" version="4.5.10" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="SkiaSharp" version="1.59.2" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="SkiaSharp.Views.Forms" version="1.59.2" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="Splat" version="1.6.0" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="SQLite.Net.Core-PCL" version="3.1.1" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="SQLite.Net-PCL" version="3.1.1" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="SQLitePCLRaw.bundle_e_sqlite3" version="1.1.0" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="SQLitePCLRaw.core" version="1.1.0" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="SuaveControls.FloatingActionButton" version="2017.10.17" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="Telerik.UI.for.Xamarin" version="2017.3.926.1" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="UXDivers.GorillaPlayer.Common" version="0.9.1.2" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="UXDivers.GorillaPlayer.SDK" version="1.1.0.4" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="Validation" version="2.2.8" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="Xam.Plugin.Geolocator" version="4.1.3" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="Xam.Plugins.Settings" version="3.0.1" targetFramework="portable45-net45+win8+wp8+wpa81" />
          <package id="Xamarin.Forms" version="2.4.0.38779" targetFramework="portable45-net45+win8+wp8+wpa81" />
        </packages> 
    
Sign In or Register to comment.