Skip to content
This repository was archived by the owner on Feb 23, 2022. It is now read-only.
This repository was archived by the owner on Feb 23, 2022. It is now read-only.

Module not working well with maplibre-gl-native sdk for android. #8

@SumedhShriram

Description

@SumedhShriram

Android API:
Mapbox Navigation SDK version:

Steps to trigger behavior

  1. add dependencies
    1.1 implementation 'org.maplibre.gl:android-sdk:9.4.0'
    1.2 implementation 'com.graphhopper:graphhopper-navigation-android-ui:0.1.0-SNAPSHOT'
  2. sync gradle
  3. import in MainActivity
    import com.mapbox.api.directions.v5.models.DirectionsRoute;
    import com.mapbox.geojson.Point;
    import com.mapbox.mapboxsdk.Mapbox;
    import com.mapbox.mapboxsdk.annotations.Marker;
    import com.mapbox.mapboxsdk.location.LocationComponent;
    import com.mapbox.mapboxsdk.location.LocationComponentActivationOptions;
    import com.mapbox.mapboxsdk.location.LocationComponentOptions;
    import com.mapbox.mapboxsdk.location.modes.CameraMode;
    import com.mapbox.mapboxsdk.location.modes.RenderMode;
    import com.mapbox.mapboxsdk.location.permissions.PermissionsListener;
    import com.mapbox.mapboxsdk.location.permissions.PermissionsManager;
    import com.mapbox.mapboxsdk.maps.MapView;
    import com.mapbox.mapboxsdk.maps.MapboxMap;
    import com.mapbox.mapboxsdk.maps.OnMapReadyCallback;
    import com.mapbox.mapboxsdk.maps.Style;
    import com.mapbox.services.android.navigation.v5.utils.LocaleUtils;
  4. build app

Expected behavior

Navigating between 2 Points

Actual behavior

Duplicate Classes issue when using "graphhopper android navigation ui" with maplibre android sdk 9.4
OR
on excluding mapbox-android-sdk while implementing "graphhopper android navigation ui"
jetified-graphhopper-navigation-android-ui-0.1.0-SNAPSHOT/res/layout/navigation_view_layout.xml:10: AAPT: error: attribute mapbox_styleUrl (aka mapsapp:mapbox_styleUrl) not found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions