homeeondemand / react-native-mapbox-navigation

A navigation UI ready to drop into your React Native application
MIT License
162 stars 123 forks source link

Error at the build of the app (Android) #27

Open KillianPiccerelle opened 3 years ago

KillianPiccerelle commented 3 years ago

Hello I have install the dependency, there was an error with dependency at the install so i made it with --legacy-peer-deps and now when i try to launch it i have this error https://gist.github.com/KillianPiccerelle/567dffb645ca48ba4ca9c4515b52c494 I try to do

cd android .\gradlew clean cd .. npm cache clean --force

But nothing change. androidXML properties gradle build

KillianPiccerelle commented 3 years ago

If you want see the errors before i made a --legacy-peer-deps, maybe there is a link=> before

rossmartin commented 3 years ago

Here is the relevant error output -

* What went wrong:
Execution failed for task ':app:mergeDebugAssets'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve com.mapbox.navigation:core:1.3.0.
     Required by:
         project :app > project :homee_react-native-mapbox-navigation
      > Could not resolve com.mapbox.navigation:core:1.3.0.
         > Could not get resource 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/navigation/core/1.3.0/core-1.3.0.pom'.
            > Could not GET 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/navigation/core/1.3.0/core-1.3.0.pom'. Received status code 403 from server: Forbidden
   > Could not resolve com.mapbox.navigation:ui:1.3.0.
     Required by:
         project :app > project :homee_react-native-mapbox-navigation
      > Could not resolve com.mapbox.navigation:ui:1.3.0.
         > Could not get resource 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/navigation/ui/1.3.0/ui-1.3.0.pom'.
            > Could not GET 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/navigation/ui/1.3.0/ui-1.3.0.pom'. Received status code 403 from server: Forbidden

You can receive status code 403 from server: Forbidden if your token is set incorrect. I think you provided the token wrong or it is invalid.

zoobibackups commented 2 years ago

Here is the relevant error output -

* What went wrong:
Execution failed for task ':app:mergeDebugAssets'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve com.mapbox.navigation:core:1.3.0.
     Required by:
         project :app > project :homee_react-native-mapbox-navigation
      > Could not resolve com.mapbox.navigation:core:1.3.0.
         > Could not get resource 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/navigation/core/1.3.0/core-1.3.0.pom'.
            > Could not GET 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/navigation/core/1.3.0/core-1.3.0.pom'. Received status code 403 from server: Forbidden
   > Could not resolve com.mapbox.navigation:ui:1.3.0.
     Required by:
         project :app > project :homee_react-native-mapbox-navigation
      > Could not resolve com.mapbox.navigation:ui:1.3.0.
         > Could not get resource 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/navigation/ui/1.3.0/ui-1.3.0.pom'.
            > Could not GET 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/navigation/ui/1.3.0/ui-1.3.0.pom'. Received status code 403 from server: Forbidden

You can receive status code 403 from server: Forbidden if your token is set incorrect. I think you provided the token wrong or it is invalid.

i got the same error