NAXAM / mapbox-xamarin-forms

Mapbox on Xamarin.Forms
Apache License 2.0
73 stars 41 forks source link

Can't Run Xamarin.Forms App on Android #110

Closed bbenetskyy closed 3 years ago

bbenetskyy commented 3 years ago

So, this is Project Structure, nothing special šŸ˜‰

After installation of the latest Naxam.Mapbox.Forms with version 1.0.9 for XXX Project, I can't run iOS, missed was a GeoJSON.Net NuGet with version 1.2.15. After installation GeoJSON.Net(v1.2.15) and Naxam.Mapbox.Forms(v1.0.9) for XXX.iOS projectI can run the app and see maps in it.

But whatever I'm doing I can't install Naxam.Mapbox.Forms for my XXX.Android Project I try v1.0.9 and v1.0.8.4(was too old and don't accept AndroidX).

Getting restore information for project /Users/XXX/XXX.Mobile/src/XXX.Android/XXX.Android.csproj
Getting restore information for project /Users/XXX/XXX.Mobile/src/XXX.iOS/XXX.iOS.csproj
Running non-parallel restore.
Reading project file /Users/XXX/XXX.Mobile/src/XXX.Android/XXX.Android.csproj.
Restoring packages for /Users/XXX/XXX.Mobile/src/XXX.Android/XXX.Android.csproj...
Restoring packages for MonoAndroid,Version=v11.0...
  GET https://api.nuget.org/v3-flatcontainer/naxam.mapboxannotation.droid/index.json
  GET https://api.nuget.org/v3-flatcontainer/naxam.mapboxgestures.droid/index.json
  GET https://api.nuget.org/v3-flatcontainer/naxam.mapboxaccounts.droid/index.json
  GET https://api.nuget.org/v3-flatcontainer/naxam.mapboxbuilding.droid/index.json
  GET https://api.nuget.org/v3-flatcontainer/naxam.mapboxtraffic.droid/index.json
  OK https://api.nuget.org/v3-flatcontainer/naxam.mapboxaccounts.droid/index.json 189ms
  OK https://api.nuget.org/v3-flatcontainer/naxam.mapboxgestures.droid/index.json 619ms  OK https://api.nuget.org/v3-flatcontainer/naxam.mapboxbuilding.droid/index.json 617ms  OK https://api.nuget.org/v3-flatcontainer/naxam.mapboxannotation.droid/index.json 620ms  OK https://api.nuget.org/v3-flatcontainer/naxam.mapboxtraffic.droid/index.json 616ms

Resolving conflicts for MonoAndroid,Version=v11.0...
Unable to find package Naxam.MapboxAccounts.Droid with version (>= 0.7.0)
  - Found 2 version(s) in nuget.org [ Nearest version: 0.2.0 ]
Unable to find package Naxam.MapboxTraffic.Droid with version (>= 0.10.0)
  - Found 1 version(s) in nuget.org [ Nearest version: 0.9.0 ]
Unable to find package Naxam.MapboxBuilding.Droid with version (>= 0.7.0)
  - Found 1 version(s) in nuget.org [ Nearest version: 0.6.0 ]
Unable to find package Naxam.MapboxGestures.Droid with version (>= 0.6.0)
  - Found 4 version(s) in nuget.org [ Nearest version: 0.5.1.1 ]
Unable to find package Naxam.MapboxAnnotation.Droid with version (>= 0.8.0)
  - Found 3 version(s) in nuget.org [ Nearest version: 0.7.0.2 ]
Package restore failed. Rolling back package changes for 'XXX.Android'.

I really need to install this on Android, please help me with this problem.

Thanks in advance šŸ˜œ

bbenetskyy commented 3 years ago

Looks like not all NuGet Packages were released, may you just check this out? This blocking my APPLICATION!!!!šŸ˜µ

broteam168 commented 3 years ago

:)) version 1.0.9 can't be used now so i recommend you 1.0.8.4 or 1.0.8.3 for better Some pack haven't been released now!

bbenetskyy commented 3 years ago

Thanks @broteam168 for your answer, but both those versions do not have AndroidX and dependencies still target Android Support.This is one of the primary reasons why I can't use them.

broteam168 commented 3 years ago

:)) i use both versions is very good.I only need to install nuget package androidx.support.annotation 28.0.0.3

broteam168 commented 3 years ago

Can you capture error and upload here may i could help you

bbenetskyy commented 3 years ago

@broteam168 just try to install Xamarin.Android.Support.Annotations with version 28.0.0.3 and later with version 28.0.0.1 but both times got this:

((P.S. -> It's when I tried to install 28.0.0.3 version))

Getting restore information for project /Users/{UserName}/{ProjectName}.Mobile/src/{ProjectName}.Android/{ProjectName}.Android.csproj
Getting restore information for project /Users/{UserName}/{ProjectName}.Mobile/src/{ProjectName}.iOS/{ProjectName}.iOS.csproj
Running non-parallel restore.
Reading project file /Users/{UserName}/{ProjectName}.Mobile/src/{ProjectName}.Android/{ProjectName}.Android.csproj.
Restoring packages for /Users/{UserName}/{ProjectName}.Mobile/src/{ProjectName}.Android/{ProjectName}.Android.csproj...
Restoring packages for MonoAndroid,Version=v11.0...
Resolving conflicts for MonoAndroid,Version=v11.0...
Detected package version outside of dependency constraint: Xamarin.Android.Support.Fragment 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Support.v7.AppCompat 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Support.Core.Utils 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Arch.Lifecycle.ViewModel 1.1.1.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Support.Loader 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Support.Compat 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Support.Core.UI 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Support.Collections 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Support.CursorAdapter 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Support.Vector.Drawable 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Support.DocumentFile 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Support.LocalBroadcastManager 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Support.Print 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Arch.Lifecycle.Runtime 1.1.1.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Support.VersionedParcelable 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Support.AsyncLayoutInflater 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Support.CoordinaterLayout 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Support.CustomView 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Support.DrawerLayout 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Support.Interpolator 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Support.SlidingPaneLayout 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Support.SwipeRefreshLayout 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Support.ViewPager 28.0.0.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Arch.Core.Common 1.1.1.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Arch.Core.Runtime 1.1.1.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Detected package version outside of dependency constraint: Xamarin.Android.Arch.Lifecycle.Common 1.1.1.1 requires Xamarin.Android.Support.Annotations (= 28.0.0.1) but version Xamarin.Android.Support.Annotations 28.0.0.3 was resolved.
Checking compatibility of packages on MonoAndroid,Version=v11.0.
Checking compatibility for {ProjectName}.Android 1.0.0 with MonoAndroid,Version=v11.0.
Checking compatibility for Microsoft.AppCenter.Analytics 4.1.0 with MonoAndroid,Version=v11.0.
Checking compatibility for Microsoft.AppCenter.Crashes 4.1.0 with MonoAndroid,Version=v11.0.
Checking compatibility for MvvmCross.Forms 7.1.2 with MonoAndroid,Version=v11.0.
Checking compatibility for Plugin.CurrentActivity 2.1.0.4 with MonoAndroid,Version=v11.0.
Checking compatibility for Plugin.Permissions 6.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Rg.Plugins.Popup 2.0.0.10 with MonoAndroid,Version=v11.0.
Checking compatibility for System.IdentityModel.Tokens.Jwt 6.8.0 with MonoAndroid,Version=v11.0.
Checking compatibility for Xam.Plugin.Connectivity 3.2.0 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.AppCompat 1.2.0.7 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.MediaRouter 1.2.2.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Migration 1.0.8 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Essentials 1.6.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.FFImageLoading.Svg.Forms 2.4.11.982 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Forms 5.0.0.2012 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Forms.PancakeView 2.3.0.759 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Forms.Visual.Material 5.0.0.2012 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Google.Android.Material 1.3.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for libphonenumber-csharp 8.12.18 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.Annotations 28.0.0.3 with MonoAndroid,Version=v11.0.
Checking compatibility for {ProjectName}.Common 1.0.0 with MonoAndroid,Version=v11.0.
Checking compatibility for {ProjectName} 1.0.0 with MonoAndroid,Version=v11.0.
Checking compatibility for Microsoft.AppCenter 4.1.0 with MonoAndroid,Version=v11.0.
Checking compatibility for MvvmCross 7.1.2 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Build.Download 0.10.0 with MonoAndroid,Version=v11.0.
Checking compatibility for Microsoft.IdentityModel.JsonWebTokens 6.8.0 with MonoAndroid,Version=v11.0.
Checking compatibility for Microsoft.IdentityModel.Tokens 6.8.0 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Annotation 1.1.0.9 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.AppCompat.AppCompatResources 1.2.0.7 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Core 1.3.2.3 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.CursorAdapter 1.0.0.7 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.DrawerLayout 1.1.1.2 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Fragment 1.3.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Media 1.2.1.2 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Google.Guava.ListenableFuture 1.0.0.2 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.MultiDex 2.0.1.5 with MonoAndroid,Version=v11.0.
Checking compatibility for System.Numerics.Vectors 4.5.0 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Browser 1.3.0 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.FFImageLoading.Forms 2.4.11.982 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.FFImageLoading.Svg 2.4.11.982 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Lifecycle.LiveData 2.2.0.4 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Legacy.Support.V4 1.0.0.6 with MonoAndroid,Version=v11.0.
Checking compatibility for System.ComponentModel 4.3.0 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Annotation.Experimental 1.0.0.9 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.CardView 1.0.0.8 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.ConstraintLayout 2.0.4.2 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.CoordinatorLayout 1.1.0.7 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.DynamicAnimation 1.0.0.7 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Lifecycle.Runtime 2.3.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.RecyclerView 1.1.0.8 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Transition 1.4.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.VectorDrawable 1.1.0.7 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.ViewPager2 1.0.0.9 with MonoAndroid,Version=v11.0.
Checking compatibility for System.Collections.Immutable 1.7.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Refit 5.2.4 with MonoAndroid,Version=v11.0.
Checking compatibility for Naxam.Mapbox.Forms 1.0.8.4 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.CommunityToolkit 1.1.0 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Preference 1.1.1.5 with MonoAndroid,Version=v11.0.
Checking compatibility for Microsoft.IdentityModel.Logging 6.8.0 with MonoAndroid,Version=v11.0.
Checking compatibility for Microsoft.CSharp 4.5.0 with MonoAndroid,Version=v11.0.
Checking compatibility for System.Security.Cryptography.Cng 4.5.0 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.VectorDrawable.Animated 1.1.0.7 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.VersionedParcelable 1.1.1.7 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.CustomView 1.1.0.6 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Activity 1.2.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Collection 1.1.0.7 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Lifecycle.LiveData.Core 2.3.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Lifecycle.ViewModelSavedState 2.3.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Lifecycle.ViewModel 2.3.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Loader 1.1.0.7 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.SavedState 1.1.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.ViewPager 1.0.0.7 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.FFImageLoading 2.4.11.982 with MonoAndroid,Version=v11.0.
Checking compatibility for SkiaSharp 1.68.0 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Arch.Core.Runtime 2.1.0.7 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Legacy.Support.Core.UI 1.0.0.7 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.ConstraintLayout.Solver 2.0.4.2 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Legacy.Support.Core.Utils 1.0.0.7 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Arch.Core.Common 2.1.0.8 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Lifecycle.Common 2.3.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Newtonsoft.Json 12.0.3 with MonoAndroid,Version=v11.0.
Checking compatibility for System.Text.Json 4.7.2 with MonoAndroid,Version=v11.0.
Checking compatibility for Naxam.Mapbox.Droid 8.4.0 with MonoAndroid,Version=v11.0.
Checking compatibility for Naxam.MapboxAnnotation.Droid 0.7.0.2 with MonoAndroid,Version=v11.0.
Package Naxam.MapboxAnnotation.Droid 0.7.0.2 is not compatible with monoandroid11.0 (MonoAndroid,Version=v11.0). Package Naxam.MapboxAnnotation.Droid 0.7.0.2 does not support any target frameworks.
Checking compatibility for Naxam.MapboxGestures.Droid 0.5.1.1 with MonoAndroid,Version=v11.0.
Package Naxam.MapboxGestures.Droid 0.5.1.1 is not compatible with monoandroid11.0 (MonoAndroid,Version=v11.0). Package Naxam.MapboxGestures.Droid 0.5.1.1 does not support any target frameworks.
Checking compatibility for Naxam.MapboxAccounts.Droid 0.2.0 with MonoAndroid,Version=v11.0.
Package Naxam.MapboxAccounts.Droid 0.2.0 is not compatible with monoandroid11.0 (MonoAndroid,Version=v11.0). Package Naxam.MapboxAccounts.Droid 0.2.0 does not support any target frameworks.
Checking compatibility for Naxam.MapboxBuilding.Droid 0.6.0 with MonoAndroid,Version=v11.0.
Package Naxam.MapboxBuilding.Droid 0.6.0 is not compatible with monoandroid11.0 (MonoAndroid,Version=v11.0). Package Naxam.MapboxBuilding.Droid 0.6.0 does not support any target frameworks.
Checking compatibility for Naxam.MapboxTraffic.Droid 0.9.0 with MonoAndroid,Version=v11.0.
Package Naxam.MapboxTraffic.Droid 0.9.0 is not compatible with monoandroid11.0 (MonoAndroid,Version=v11.0). Package Naxam.MapboxTraffic.Droid 0.9.0 does not support any target frameworks.
Checking compatibility for Xamarin.AndroidX.Interpolator 1.0.0.7 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.AsyncLayoutInflater 1.0.0.6 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.SlidingPaneLayout 1.1.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.SwipeRefreshLayout 1.1.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.DocumentFile 1.0.1.7 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.LocalBroadcastManager 1.0.0.7 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.AndroidX.Print 1.0.0.7 with MonoAndroid,Version=v11.0.
Checking compatibility for Microsoft.Bcl.AsyncInterfaces 1.1.0 with MonoAndroid,Version=v11.0.
Checking compatibility for System.Buffers 4.5.1 with MonoAndroid,Version=v11.0.
Checking compatibility for System.Runtime.CompilerServices.Unsafe 4.7.1 with MonoAndroid,Version=v11.0.
Checking compatibility for System.Text.Encodings.Web 4.7.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Naxam.Mapbox.MapboxAndroidCore 1.3.0 with MonoAndroid,Version=v11.0.
Package Naxam.Mapbox.MapboxAndroidCore 1.3.0 is not compatible with monoandroid11.0 (MonoAndroid,Version=v11.0). Package Naxam.Mapbox.MapboxAndroidCore 1.3.0 does not support any target frameworks.
Checking compatibility for Naxam.Mapbox.Services.Android.Telemetry 4.5.1 with MonoAndroid,Version=v11.0.
Package Naxam.Mapbox.Services.Android.Telemetry 4.5.1 is not compatible with monoandroid11.0 (MonoAndroid,Version=v11.0). Package Naxam.Mapbox.Services.Android.Telemetry 4.5.1 does not support any target frameworks.
Checking compatibility for Naxam.MapboxSdkGeojson.Droid 4.9.0 with MonoAndroid,Version=v11.0.
Checking compatibility for Naxam.MapboxSdkTurf.Droid 4.9.0 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.Fragment 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Naxam.SoLoader.Droid 0.6.1.2 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.v7.AppCompat 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Naxam.Jakewharton.Timber 4.7.1 with MonoAndroid,Version=v11.0.
Checking compatibility for System.Threading.Tasks.Extensions 4.5.2 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.Core.Utils 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Square.OkHttp3 3.12.3 with MonoAndroid,Version=v11.0.
Checking compatibility for GoogleGson 2.8.5 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Arch.Lifecycle.ViewModel 1.1.1.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.Loader 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.Compat 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.Core.UI 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.Animated.Vector.Drawable 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.Collections 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.CursorAdapter 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.Vector.Drawable 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.DocumentFile 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.LocalBroadcastManager 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.Print 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Square.OkIO 1.15.0 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Arch.Lifecycle.LiveData 1.1.1.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Arch.Lifecycle.Runtime 1.1.1.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.VersionedParcelable 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.AsyncLayoutInflater 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.CoordinaterLayout 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.CustomView 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.DrawerLayout 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.Interpolator 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.SlidingPaneLayout 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.SwipeRefreshLayout 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Support.ViewPager 28.0.0.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Arch.Core.Common 1.1.1.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Arch.Core.Runtime 1.1.1.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Arch.Lifecycle.LiveData.Core 1.1.1.1 with MonoAndroid,Version=v11.0.
Checking compatibility for Xamarin.Android.Arch.Lifecycle.Common 1.1.1.1 with MonoAndroid,Version=v11.0.
Incompatible packages: 7
Package restore failed. Rolling back package changes for '{ProjectName}.Android'.
broteam168 commented 3 years ago

I have solved this by using mapbox version 1.8.0.3 seem you have used 1.8.0.4

bbenetskyy commented 3 years ago

After downgrade to 1.0.8.3 I've got this error on Android:

  Xamarin.Android.Legacy.targets(300, 5): [XA2002] Can not resolve reference: `Naxam.Mapbox.MapboxAndroidCore`, referenced by `Naxam.Mapbox.Droid`. Please add a NuGet package or assembly reference for `Naxam.Mapbox.MapboxAndroidCore`, or remove the reference to `Naxam.Mapbox.Droid`.

So, I try to install missed package, according to NuGet,org site 1.0.8.3 was released after the latest Naxam.Mapbox.MapboxAndroidCore version(1.3.0), but again I faced

@ Installing Naxam.Mapbox.MapboxAndroidCore in {ProjectName}.Android started
Running restore with 8 concurrent jobs.
Reading project file /Users/{UserName}/{ProjectName}.Mobile/src/{ProjectName}.Android/{ProjectName}.Android.csproj.
Restoring packages for /Users/{UserName}/{ProjectName}.Mobile/src/{ProjectName}.Android/{ProjectName}.Android.csproj...
Restoring packages for MonoAndroid,Version=v11.0...
Resolving conflicts for MonoAndroid,Version=v11.0...
Checking compatibility of packages on MonoAndroid,Version=v11.0.
Package Naxam.Mapbox.MapboxAndroidCore 1.3.0 is not compatible with monoandroid11.0 (MonoAndroid,Version=v11.0). Package Naxam.Mapbox.MapboxAndroidCore 1.3.0 does not support any target frameworks.
Package Naxam.MapboxAnnotation.Droid 0.7.0.2 is not compatible with monoandroid11.0 (MonoAndroid,Version=v11.0). Package Naxam.MapboxAnnotation.Droid 0.7.0.2 does not support any target frameworks.
Package Naxam.MapboxGestures.Droid 0.5.1.1 is not compatible with monoandroid11.0 (MonoAndroid,Version=v11.0). Package Naxam.MapboxGestures.Droid 0.5.1.1 does not support any target frameworks.
Package Naxam.MapboxAccounts.Droid 0.2.0 is not compatible with monoandroid11.0 (MonoAndroid,Version=v11.0). Package Naxam.MapboxAccounts.Droid 0.2.0 does not support any target frameworks.
Package restore failed. Rolling back package changes for '{ProjectName}.Android'.
Package Naxam.Mapbox.MapboxAndroidCore 1.3.0 is not compatible with monoandroid11.0 (MonoAndroid,Version=v11.0). Package Naxam.Mapbox.MapboxAndroidCore 1.3.0 does not support any target frameworks.
Package Naxam.MapboxAnnota ... Android,Version=v11.0). Package Naxam.MapboxGestures.Droid 0.5.1.1 does not support any target frameworks.
Package Naxam.MapboxAccounts.Droid 0.2.0 is not compatible with monoandroid11.0 (MonoAndroid,Version=v11.0). Package Naxam.MapboxAccounts.Droid 0.2.0 does not support any target frameworks.

NuGet.PackageManagement.PackageReferenceRollbackException: Package restore failed. Rolling back package changes for '{ProjectName}.Android'.
   at NuGet.PackageManagement.NuGetPackageManager.ExecuteBuildIntegratedProjectActionsAsync(BuildIntegratedNuGetProject buildIntegratedProject, IEnumerable`1 nuGetProjectActions, INuGetProjectContext nuGetProjectContext, CancellationToken token)
   at NuGet.PackageManagement.NuGetPackageManager.ExecuteNuGetProjectActionsAsync(NuGetProject nuGetProject, IEnumerable`1 nuGetProjectActions, INuGetProjectContext nuGetProjectContext, PackageDownloadContext downloadContext, CancellationToken token)
   at NuGet.PackageManagement.NuGetPackageManager.InstallPackageAsync(NuGetProject nuGetProject, PackageIdentity packageIdentity, ResolutionContext resolutionContext, INuGetProjectContext nuGetProjectContext, PackageDownloadContext downloadContext, IEnumerable`1 primarySources, IEnumerable`1 secondarySources, CancellationToken token)
   at NuGet.PackageManagement.NuGetPackageManager.InstallPackageAsync(NuGetProject nuGetProject, PackageIdentity packageIdentity, ResolutionContext resolutionContext, INuGetProjectContext nuGetProjectContext, IEnumerable`1 primarySources, IEnumerable`1 secondarySources, CancellationToken token)
   at JetBrains.ProjectModel.NuGet.Operations.NuGetInstallOperation.<>c__DisplayClass6_0.<<InstallAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at JetBrains.ProjectModel.NuGet.Operations.NuGetInstallOperation.InstallInternal(IProject project, String packageId, String packgeUserStr, NuGetFeedContext feedContext, Int32 nestedLevel, NuGetNotificationMode mode, NuGetOperationReporter reporter, Func`3 nativeInstall, NuGetProject givenNuGetProject)

Package Naxam.Mapbox.MapboxAndroidCore 1.3.0 is not compatible with monoandroid11.0 (MonoAndroid,Version=v11.0). Package Naxam.Mapbox.MapboxAndroidCore 1.3.0 does not support any target frameworks.
Package Naxam.MapboxAnnotation.Droid 0.7.0.2 is not compatible with monoandroid11.0 (MonoAndroid,Version=v11.0). Package Naxam.MapboxAnnotation.Droid 0.7.0.2 does not support any target frameworks.
Package Naxam.MapboxGestures.Droid 0.5.1.1 is not compatible with monoandroid11.0 (MonoAndroid,Version=v11.0). Package Naxam.MapboxGestures.Droid 0.5.1.1 does not support any target frameworks.
Package Naxam.MapboxAccounts.Droid 0.2.0 is not compatible with monoandroid11.0 (MonoAndroid,Version=v11.0). Package Naxam.MapboxAccounts.Droid 0.2.0 does not support any target frameworks.
@ Installing Naxam.Mapbox.MapboxAndroidCore in {ProjectName}.Android finished (0.2 sec)
[Notification][Install] Install failed (project: {ProjectName}.Android, package: Naxam.Mapbox.MapboxAndroidCore v1.3.0)
Package restore failed. Rolling back package changes for '{ProjectName}.Android'.
Package Naxam.Mapbox.MapboxAndroidCore 1.3.0 is not compatible with monoandroid11.0 (MonoAndroid,Version=v11.0). Package Naxam.Mapbox.MapboxAndroidCore 1.3.0 does not support any target frameworks.
Package Naxam.MapboxAnnota ... Android,Version=v11.0). Package Naxam.MapboxGestures.Droid 0.5.1.1 does not support any target frameworks.
Package Naxam.MapboxAccounts.Droid 0.2.0 is not compatible with monoandroid11.0 (MonoAndroid,Version=v11.0). Package Naxam.MapboxAccounts.Droid 0.2.0 does not support any target frameworks.

Looks like I can't targeting the latest Android 11, so just for the test, I try to downgrade the target Android version to 10 and still can't install it.

I can't downgrade to 9 because of Xamarin.Forms 5.0.0 require at last android 10 as target framework.

I will wait will you release all required packages for version 1.0.9, please @broteam168 left a comment here when that version can be used in mobile applications.

Thanks

bbenetskyy commented 3 years ago

@broteam168 I've solved this problem.

Solution for v1.0.8.3

if you met that error - completely remove Visual Studio for Mac with all Android Components and re-install it, this will fix the problem

How I become to that answer - by mistake I run a script which removes all bin and obj folders not in solution level but at user folder and it's in some way broke Visual Studio. Repair did not help me and I was required to completely remove all VS components. And now version 1.0.8.3 install without any problems at my Android Project.

But this issue still should be opened, because we need version 1.0.9.0 to be worked as expected

broteam168 commented 3 years ago

Ok it's good now hope NAXAM will upgrade this nuget package this soon

broteam168 commented 3 years ago

Close this issue @bbenetskyy

bbenetskyy commented 3 years ago

ok, if anything else happens - I will open a separate issue and add a link to this one @broteam168 šŸ˜‰