mapbox-navigation-android icon indicating copy to clipboard operation
mapbox-navigation-android copied to clipboard

Received status code 403 from server: Forbidden

Open josuelmm opened this issue 3 years ago • 2 comments

Problem Received status code 403 from server: Forbidden

I have add maven { url 'https://api.mapbox.com/downloads/v2/releases/maven' authentication { basic(BasicAuthentication) } credentials { // Do not change the username below. // This should always be mapbox (not your username). username = "mapbox" // Use the secret token you stored in gradle.properties as the password password = project.properties['MAPBOX_DOWNLOADS_TOKEN'] ?: "" } }

And have add

implementation "com.mapbox.navigation:ui:1.5.1"

This return

`Executing tasks: [:app:assembleDebug] in project D:\xampp\htdocs\ionic-mapbox-navigation\android

Configure project :app google-services.json not found, google-services plugin not applied. Push Notifications won't work

FAILURE: Build failed with an exception.

  • What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'. Could not resolve com.mapbox.navigation:ui:1.5.1. Required by: project :app > Could not resolve com.mapbox.navigation:ui:1.5.1. > Could not get resource 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/navigation/ui/1.5.1/ui-1.5.1.pom'. > Could not GET 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/navigation/ui/1.5.1/ui-1.5.1.pom'. Received status code 403 from server: Forbidden

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 4s `

josuelmm avatar Jul 19 '21 11:07 josuelmm

@josuelmm Can you please tell me where you put the value for MAPBOX_DOWNLOADS_TOKEN for your project?

cafesilencio avatar Jul 19 '21 18:07 cafesilencio

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 28 '22 23:04 stale[bot]