mapbox / mapbox-maps-flutter

Interactive, thoroughly customizable maps for Flutter powered by Mapbox Maps SDK
https://www.mapbox.com/mobile-maps-sdk
Other
245 stars 93 forks source link

Gradle execution failed because no access token on version 1.1.0 #495

Open readyiman opened 1 month ago

readyiman commented 1 month ago

Debug console:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve com.mapbox.maps:android:11.3.0.
     Required by:
         project :app > project :mapbox_maps_flutter
      > Could not resolve com.mapbox.maps:android:11.3.0.
         > Could not get resource 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/maps/android/11.3.0/android-11.3.0.pom'.
            > Could not GET 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/maps/android/11.3.0/android-11.3.0.pom'. Received status code 403 from server: Forbidden

link: {"message":"Not Authorized - No Token","url":"[GET] /downloads/v2/releases/maven/com/mapbox/maps/android/11.3.0/android-11.3.0.pom","auth":"<no access token>","ua":"Amazon CloudFront"}

I had my public access token set on launch.json btw (if related), it works fine before.

evil159 commented 1 month ago

Have you configured your secret token as described here?

readyiman commented 1 month ago

I put my secret token at ~/android/gradle.properties not at ~/.gradle/gradle.properties as instructed because there is no gradle.properties file either at ~/.gradle or ~/android/.gradle. This way works fine before v1, I didn't change anything on it.

I did update Flutter to latest version that ask me to migrate Gradle as this instruction https://docs.flutter.dev/release/breaking-changes/flutter-gradle-plugin-apply

Yorlandiscuba commented 1 week ago

@readyiman You fix it?, i have the seem issue

readyiman commented 1 week ago

@readyiman You fix it?, i have the seem issue

Nah. I don't know how to fix it. I'm only using mapbox just to try.