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

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

Open
readyiman opened this issue Apr 16, 2024 · 4 comments
Open

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

readyiman opened this issue Apr 16, 2024 · 4 comments

Comments

@readyiman
Copy link

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
Copy link
Contributor

evil159 commented Apr 16, 2024

Have you configured your secret token as described here?

@readyiman
Copy link
Author

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
Copy link

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

@readyiman
Copy link
Author

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

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

No branches or pull requests

3 participants