Closed InnovativeTechies closed 6 years ago
https://www.myget.org/F/xbindings/api/v3/index.json
to your nuget sourcesXbindings.MapboxLocationLayer.Droid
packageI can't find Xbindings.MapboxLocationLayer.Droid package in this nuget source. I have only these:
@MAX-POLKOVNIK, @InnovativeTechies,
Thank you for using our library.
Plz uninstall/remove all NAXAM packages from your project then add Mapbox Navigation UI again. There is a breaking changes for the latest version of Mapbox packages.
Plz make sure to add a Nuget package source for Xbindings (https://www.myget.org/F/xbindings/api/v3/index.json).
Cheers.
@tuyen-vuduc , Still can't see MapboxNavigationUI in xbindings. I tried reinstall packages from nuget.org. Got same error. When I try directly install Naxam.MapboxNavigationUI.Droid from Xbindings (https://www.myget.org/F/xbindings/api/v3/index.json) got error : Unable to find package 'Naxam.MapboxNavigationUI.Droid'
I tested to get stetho.xamarin from xbindings and it downloaded successfully.
My xbindings settings is:
and error when installing Mapbox Navigation:
Hey,
I never mention that you had to force the source to be xbindings.
Assume that you add Xbindings nuget source already configured, here are steps:
Cheers.
Just tried again with empty Android App project. Added only Naxam.MapboxNavigationUI.Droid. It gives me error:
1>------ Rebuild All started: Project: TestMapboxNaxam, Configuration: Debug Any CPU ------
1>c : error APT0000: \users\polkovnik\documents\visual studio 2017\Projects\TestMapboxNaxam\TestMapboxNaxam\obj\Debug\lp\7\jl\res\values\values.xml:1: error: Error: No resource found that matches the given name (at 'navigationViewLocationLayerStyle' with value '@style/LocationLayer').
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Here is my Packages.config after installing Naxam.MapboxNavigationUI.Droid:
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="GoogleGson" version="2.8.1" targetFramework="monoandroid80" />
<package id="Naxam.Jakewharton.Timber" version="4.5.1" targetFramework="monoandroid80" />
<package id="Naxam.Mapbox.Droid" version="5.3.2" targetFramework="monoandroid80" />
<package id="Naxam.Mapbox.MapboxJavaCore" version="2.2.9" targetFramework="monoandroid80" />
<package id="Naxam.Mapbox.MapboxJavaGeojson" version="2.2.9" targetFramework="monoandroid80" />
<package id="Naxam.Mapbox.Services.Android.Telemetry" version="2.2.9.3" targetFramework="monoandroid80" />
<package id="Naxam.Mapbox.Services.Droid" version="2.2.9.1" targetFramework="monoandroid80" />
<package id="Naxam.MapboxNavigation.Droid" version="0.9.0" targetFramework="monoandroid80" />
<package id="Naxam.MapboxNavigationUI.Droid" version="0.9.0" targetFramework="monoandroid80" />
<package id="Naxam.MapboxSdkCore.Droid" version="3.0.0.2" targetFramework="monoandroid80" />
<package id="Naxam.MapboxSdkGeojson.Droid" version="3.0.0.2" targetFramework="monoandroid80" />
<package id="Naxam.MapboxSdkServices.Droid" version="3.0.0.2" targetFramework="monoandroid80" />
<package id="Naxam.MapboxSdkTurf.Droid" version="3.0.0.2" targetFramework="monoandroid80" />
<package id="Naxam.Mapzen.Lost.Droid" version="3.0.4" targetFramework="monoandroid80" />
<package id="Naxam.Retrofit2.ConvertGson.Droid" version="2.3.0.2" targetFramework="monoandroid80" />
<package id="Naxam.SquareUp.OkHttp3.LoggingInterceptor" version="3.9.1.1" targetFramework="monoandroid80" />
<package id="Square.OkHttp" version="2.4.0.0" targetFramework="monoandroid80" />
<package id="Square.OkHttp3" version="3.8.1" targetFramework="monoandroid80" />
<package id="Square.OkIO" version="1.13.0" targetFramework="monoandroid80" />
<package id="Square.Picasso" version="2.5.2.1" targetFramework="monoandroid80" />
<package id="Square.Retrofit2" version="2.3.0" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Arch.Core.Common" version="1.0.0" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Arch.Core.Runtime" version="1.0.0" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Arch.Lifecycle.Common" version="1.0.1" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Arch.Lifecycle.Extensions" version="1.0.0" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Arch.Lifecycle.Runtime" version="1.0.0" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Animated.Vector.Drawable" version="26.1.0.1" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Annotations" version="26.1.0.1" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Compat" version="26.1.0.1" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Constraint.Layout" version="1.0.2.2" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Constraint.Layout.Solver" version="1.0.2.2" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Core.UI" version="26.1.0.1" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Core.Utils" version="26.1.0.1" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Design" version="26.1.0.1" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Fragment" version="26.1.0.1" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Media.Compat" version="26.1.0.1" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Transition" version="26.1.0.1" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.v4" version="26.1.0.1" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.v7.AppCompat" version="26.1.0.1" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.v7.CardView" version="26.1.0.1" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.v7.RecyclerView" version="26.1.0.1" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Vector.Drawable" version="26.1.0.1" targetFramework="monoandroid80" />
<package id="Xamarin.Build.Download" version="0.4.2" targetFramework="monoandroid80" />
<package id="Xamarin.GooglePlayServices.Base" version="42.1021.1" targetFramework="monoandroid80" />
<package id="Xamarin.GooglePlayServices.Basement" version="42.1021.1" targetFramework="monoandroid80" />
<package id="Xamarin.GooglePlayServices.Location" version="42.1021.1" targetFramework="monoandroid80" />
<package id="Xamarin.GooglePlayServices.Tasks" version="42.1021.1" targetFramework="monoandroid80" />
<package id="Xbindings.AWSSdkCore.Droid" version="2.3.8" targetFramework="monoandroid80" />
<package id="Xbindings.AWSSdkPolly.Droid" version="2.3.8" targetFramework="monoandroid80" />
</packages>
Also xbindings added as package source.
Hey,
There is a missing dependency to package Xbindings.MapboxLocationLayer.Droid
.
Plz install that package as well as enable multi-dex to your project.
Cheers.
@tuyen-vuduc Adding Xbindings.MapboxLocationLayer.Droid and enabling multi-dex fixes that issue. Thank you.
You're welcome! It's a little tricky when working with Xamarin, just follow the error carefully :)
Dear Sir,
I am getting below error in build after i add the nuget package to my new project.
/Users/rakeshkumardesai/Projects/NavigationUiApp/NavigationUiApp/obj/Debug/lp/7/jl/res/values/values.xml: Error APT0000: 1: error: Error: No resource found that matches the given name (at 'navigationViewLocationLayerStyle' with value '@style/LocationLayer'). (APT0000) (NavigationUiApp)
Kindly advice