mapbox-maps-flutter icon indicating copy to clipboard operation
mapbox-maps-flutter copied to clipboard

Gradle execution failed because no access token on version 1.1.0

Open readyiman opened this issue 1 year ago • 5 comments

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.

readyiman avatar Apr 16 '24 01:04 readyiman

Have you configured your secret token as described here?

evil159 avatar Apr 16 '24 08:04 evil159

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

readyiman avatar Apr 17 '24 00:04 readyiman

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

Yorlandiscuba avatar May 07 '24 13:05 Yorlandiscuba

@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.

readyiman avatar May 08 '24 00:05 readyiman