flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.04k stars 503 forks source link

Unable to build Mapbox on android [[!] Gradle threw an error while downloading artifacts from the network.] #1267

Closed zreaqqasem closed 1 year ago

zreaqqasem commented 1 year ago

I'm trying to to run the project that use Mapbox-gl and it's works fine on the iOS side but in the android side I keep get this exception

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

> Could not determine artifacts for com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.2

  > Could not get resource 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/mapboxsdk/mapbox-android-sdk/9.6.2/mapbox-android-sdk-9.6.2.aar'.
     > Could not HEAD 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/mapboxsdk/mapbox-android-sdk/9.6.2/mapbox-android-sdk-9.6.2.aar'. Received status code 401 from server: Unauthorized

even I go over the doc to setup it in android and I found no resource to resolve this even this exception happening with your example project in this repo.

could any one. help ?

YumNumm commented 1 year ago

same. But this was happened only Windows. With macOS, it runs well. I'm looking for a solution too...!

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDevDebugAarMetadata'.
> Could not resolve all files for configuration ':app:devDebugRuntimeClasspath'.
   > Could not resolve com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.2.
     Required by:
         project :app > project :mapbox_gl
      > Could not resolve com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.2.
         > Could not get resource 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/mapboxsdk/mapbox-android-sdk/9.6.2/mapbox-android-sdk-9.6.2.pom'.
            > Could not GET 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/mapboxsdk/mapbox-android-sdk/9.6.2/mapbox-android-sdk-9.6.2.pom'. Received status code 403 from server: Forbidden
stale[bot] commented 1 year ago

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.