Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAILURE: Build failed with an exception. BUILD FAILED EXPO APP 👎🏼 #3729

Closed
thygasantos opened this issue Dec 19, 2024 · 7 comments
Closed

Comments

@thygasantos
Copy link

  • What went wrong:

Could not determine the dependencies of task ':app:processDebugResources'.

Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.

Could not resolve com.mapbox.maps:android:10.18.4.

 Required by:

     project :app > project :rnmapbox_maps


  > Could not resolve com.mapbox.maps:android:10.18.4.


     > Could not get resource 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/maps/android/10.18.4/android-10.18.4.pom'.


        > Could not GET 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/maps/android/10.18.4/android-10.18.4.pom'. Received status code 403 from server: Forbidden

Could not resolve com.mapbox.mapboxsdk:mapbox-sdk-turf:6.11.0.

Required by:

     project :app > project :rnmapbox_maps

  > Could not resolve com.mapbox.mapboxsdk:mapbox-sdk-turf:6.11.0.


     > Could not get resource 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/mapboxsdk/mapbox-sdk-turf/6.11.0/mapbox-sdk-turf-6.11.0.pom'.


        > Could not GET 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/mapboxsdk/mapbox-sdk-turf/6.11.0/mapbox-sdk-turf-6.11.0.pom'. Received status code 403 from server: Forbidden

Captura de tela de 2024-12-19 16-40-24

@smitroshin
Copy link

I have the same issue.
And hardcoding mapbox token in app.config.ts didn't help.

@DmitriiLevchenko
Copy link

same

@LeonardoNoroWidelab
Copy link

Hi,
I created a new Access Token on Mapbox Access Tokens, then set it in app.json -> RNMapboxMapsDownloadToken and Mapbox.setAccessToken on my App.tsx file.

Doing this solved for me.

@thygasantos
Copy link
Author

solved , thanks 👍🏼 👍🏼

Hi, I created a new Access Token on Mapbox Access Tokens, then set it in app.json -> RNMapboxMapsDownloadToken and Mapbox.setAccessToken on my App.tsx file.

Doing this solved for me.

Captura de tela de 2024-12-21 16-59-54

@Elazar-Levin
Copy link

I had no problem before, but now suddenly my builds keep failing with this error. I have tried everything, using latest Gradle builds, creating and using a new SK, updating expo, but nothing is working.

@Elazar-Levin
Copy link

I created a new Access Token in Mapbox Access Tokens, and then set it in app.json - RNMapboxMapMapsDownloadToken and Mapbox.setAccessToken in my App.tsx file. use import Mapbox from '@rnmapbox/maps'; in the App.tsx file it worked normally for me

screen app.tsx Captura de tela de 2024-12-26 20-06-45

screen app.json Captura de tela de 2024-12-26 20-01-39

Thank you very much for your help. I tried creating a new token, and adding it into the app.json like you said, but I'm still getting the same error. I'll paste my error here, in case there's something I'm missing.

[RUN_GRADLEW] > Configure project :react-native-reanimated
[RUN_GRADLEW] Android gradle plugin: 8.6.0
[RUN_GRADLEW] Gradle: 8.10.2
[RUN_GRADLEW] FAILURE: Build failed with an exception.
[RUN_GRADLEW] * What went wrong:
[RUN_GRADLEW] Could not determine the dependencies of task ':app:processDebugResources'.
[RUN_GRADLEW] > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
[RUN_GRADLEW] > Could not find com.mapbox.maps:android:10.18.4.
[RUN_GRADLEW] Searched in the following locations:
[RUN_GRADLEW] - https://oss.sonatype.org/content/repositories/snapshots/com/mapbox/maps/android/10.18.4/android-10.18.4.pom
[RUN_GRADLEW] - https://repo.maven.apache.org/maven2/com/mapbox/maps/android/10.18.4/android-10.18.4.pom
[RUN_GRADLEW] - https://dl.google.com/dl/android/maven2/com/mapbox/maps/android/10.18.4/android-10.18.4.pom
[RUN_GRADLEW] - https://www.jitpack.io/com/mapbox/maps/android/10.18.4/android-10.18.4.pom
[RUN_GRADLEW] - file:/tmp/root/eas-build-local-nodejs/f4978724-5959-4de8-8137-4a4a4f9d4d6e/build/node_modules/react-native/android/com/mapbox/maps/android/10.18.4/android-10.18.4.pom
[RUN_GRADLEW] - file:/tmp/root/eas-build-local-nodejs/f4978724-5959-4de8-8137-4a4a4f9d4d6e/build/node_modules/jsc-android/dist/com/mapbox/maps/android/10.18.4/android-10.18.4.pom
[RUN_GRADLEW] Required by:
[RUN_GRADLEW] project :app > project :rnmapbox_maps
[RUN_GRADLEW] > Could not find com.mapbox.mapboxsdk:mapbox-sdk-turf:6.11.0.
[RUN_GRADLEW] Searched in the following locations:
[RUN_GRADLEW] - https://oss.sonatype.org/content/repositories/snapshots/com/mapbox/mapboxsdk/mapbox-sdk-turf/6.11.0/mapbox-sdk-turf-6.11.0.pom
[RUN_GRADLEW] - https://repo.maven.apache.org/maven2/com/mapbox/mapboxsdk/mapbox-sdk-turf/6.11.0/mapbox-sdk-turf-6.11.0.pom
[RUN_GRADLEW] - https://dl.google.com/dl/android/maven2/com/mapbox/mapboxsdk/mapbox-sdk-turf/6.11.0/mapbox-sdk-turf-6.11.0.pom
[RUN_GRADLEW] - https://www.jitpack.io/com/mapbox/mapboxsdk/mapbox-sdk-turf/6.11.0/mapbox-sdk-turf-6.11.0.pom
[RUN_GRADLEW] - file:/tmp/root/eas-build-local-nodejs/f4978724-5959-4de8-8137-4a4a4f9d4d6e/build/node_modules/react-native/android/com/mapbox/mapboxsdk/mapbox-sdk-turf/6.11.0/mapbox-sdk-turf-6.11.0.pom
[RUN_GRADLEW] - file:/tmp/root/eas-build-local-nodejs/f4978724-5959-4de8-8137-4a4a4f9d4d6e/build/node_modules/jsc-android/dist/com/mapbox/mapboxsdk/mapbox-sdk-turf/6.11.0/mapbox-sdk-turf-6.11.0.pom
[RUN_GRADLEW] Required by:
[RUN_GRADLEW] project :app > project :rnmapbox_maps
[RUN_GRADLEW] * Try:
[RUN_GRADLEW] > Run with --stacktrace option to get the stack trace.
[RUN_GRADLEW] > Run with --info or --debug option to get more log output.
[RUN_GRADLEW] >
[RUN_GRADLEW] Run with --scan to get full insights.
[RUN_GRADLEW] > Get more help at https://help.gradle.org.
[RUN_GRADLEW] BUILD FAILED in 27s

@thygasantos
Copy link
Author

error in your application code, my application compilation is working .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants