Bindings.Mapbox.Maps.AndroidNdk27 11.23.0.2

dotnet add package Bindings.Mapbox.Maps.AndroidNdk27 --version 11.23.0.2
                    
NuGet\Install-Package Bindings.Mapbox.Maps.AndroidNdk27 -Version 11.23.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Bindings.Mapbox.Maps.AndroidNdk27" Version="11.23.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bindings.Mapbox.Maps.AndroidNdk27" Version="11.23.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Bindings.Mapbox.Maps.AndroidNdk27" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Bindings.Mapbox.Maps.AndroidNdk27 --version 11.23.0.2
                    
#r "nuget: Bindings.Mapbox.Maps.AndroidNdk27, 11.23.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Bindings.Mapbox.Maps.AndroidNdk27@11.23.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Bindings.Mapbox.Maps.AndroidNdk27&version=11.23.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Bindings.Mapbox.Maps.AndroidNdk27&version=11.23.0.2
                    
Install as a Cake Tool

Mapbox - android-ndk27

.NET Android binding for com.mapbox.maps:android-ndk27:11.23.0.[^tuyen]

Install

For a .NET Android app that renders Mapbox maps, install this package:

dotnet add package Bindings.Mapbox.Maps.AndroidNdk27 --version 11.23.0.2

Mapbox Setup

Mapbox Android artifacts are resolved from Mapbox's Maven repository during your app build. Add this once to the consuming app project:

<ItemGroup>
  <GradleRepository Include="https://api.mapbox.com/downloads/v2/releases/maven">
    <Repository><![CDATA[
      maven {
          url = uri("https://api.mapbox.com/downloads/v2/releases/maven")
          credentials {
              username = "mapbox"
              password = providers.gradleProperty("MAPBOX_DOWNLOADS_TOKEN").orNull
          }
          authentication {
              create<BasicAuthentication>("basic")
          }
      }
    ]]></Repository>
  </GradleRepository>
</ItemGroup>

Provide the secret downloads token through Gradle, not in source control:

export ORG_GRADLE_PROJECT_MAPBOX_DOWNLOADS_TOKEN=sk...

You can also set MAPBOX_DOWNLOADS_TOKEN=sk... in ~/.gradle/gradle.properties.

Use a public Mapbox access token at runtime before creating the map:

Com.Mapbox.Common.MapboxOptions.AccessToken = "pk...";

Minimal Map

using Com.Mapbox.Common;
using Com.Mapbox.Maps;

MapboxOptions.AccessToken = "pk...";

var mapInitOptions = new MapInitOptions(
    this,
    MapInitOptions.CompanionField.GetDefaultMapOptions(this),
    MapInitOptions.CompanionField.DefaultPluginList,
    cameraOptions: null,
    textureView: false,
    styleUri: Style.Outdoors);

var mapView = new MapView(this, mapInitOptions);
SetContentView(mapView);

Keep the MapView in a field and forward your activity lifecycle callbacks to it (OnStart, OnStop, OnDestroy, and OnLowMemory).

[^tuyen]: These Android bindings build on the binding-generation approach from Tuyen Vu Duc's dotnet-binding-utils. Native Mapbox SDK components and Mapbox artifacts are copyright Mapbox, Inc. Please consider sponsoring Tuyen.

Product Compatible and additional computed target framework versions.
.NET net8.0-android34.0 is compatible.  net9.0-android was computed.  net10.0-android was computed.  net10.0-android36.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.23.0.2 98 5/6/2026
11.23.0.1 87 5/6/2026
11.19.0 91 5/5/2026