-
Notifications
You must be signed in to change notification settings - Fork 502
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
SDK Registry token build error on Android #663
Comments
This pull request will fix your issue: #644 |
My apologies. This PR follows the official Android documentation: #621 644 allows the instructions for iOS to work on both platforms (I prefer this approach). |
If you're still struggling with this (and as the above mentioned PRs are not merged): You can get that from https://account.mapbox.com/access-tokens export SDK_REGISTRY_TOKEN="sk.xxxxxxxxxxxx" Restart your IDE and it should work fine. |
I still get the same error. I made sure the token has only DOWNLOADS:READ checked and that I added the line in .zshrc and restarted the IDE. |
Hello everyone! I've also got this working by combining previous answers and other answers I've found on the internet. Below is the solution I got: ANDROID
iOS |
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. |
Add this line to your gradle.properties file: Follow this documentation to create your token: |
I'm getting a
SDK Registry token is null
build error when running the app on Android, v0.12.0. Here's the entire debug message:I tried setting the Mapbox secret token according to the official Android docs, but to no avail. Thoughts?
flutter doctor -v output
``` [✓] Flutter (Channel stable, 2.2.2, on macOS 11.3 20E232 darwin-x64, locale en-US) • Flutter version 2.2.2 at /Users/philiplindberg/Code/flutter • Framework revision d79295af24 (3 weeks ago), 2021-06-11 08:56:01 -0700 • Engine revision 91c9fc8fe0 • Dart version 2.13.3[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
• Android SDK at /Users/philiplindberg/Library/Android/Sdk
• Platform android-30, build-tools 30.0.0
• ANDROID_HOME = /Users/philiplindberg/Library/Android/Sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.57.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.23.0
[✓] Connected device (4 available)
• Pixel 3 (mobile) • 96KX221LS • android-arm64 • Android 11 (API 30)
• Philip's iPhone (mobile) • 00008020-00151D9C3682002E • ios • iOS 14.6
• macOS (desktop) • macos • darwin-x64 • macOS 11.3 20E232 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 91.0.4472.114
• No issues found!
The text was updated successfully, but these errors were encountered: