-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
"Android license status unknown" error on Flutter 1.12 with Android Studio 3.6 #51712
Comments
I am facing this issue with the latest installation of Android Studio (3.6). Flutter doctor is reporting:
when the
The location specified by the tool ( I found a post on SO that stated installing JDK8 resolves the problem. So I tried installing JDK8 and set the SDK location via `File->Other Settings->Default Project Structure->SDKs' in Android Studio. But the problem was not resolved. |
Also same issue: when i call sdkmanager --version |
also A newer version of the Android SDK is required. To update, run:
/Users/nali/Library/Android/sdk/tools/bin/sdkmanager --update #0 throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
#1 AndroidLicenseValidator.runLicenseManager
(package:flutter_tools/src/android/android_workflow.dart:365:7)
#2 Doctor.diagnose (package:flutter_tools/src/doctor.dart:262:38)
#3 DoctorCommand.runCommand
(package:flutter_tools/src/commands/doctor.dart:58:39)
#4 FlutterCommand.verifyThenRunCommand
(package:flutter_tools/src/runner/flutter_command.dart:711:18)
#5 _rootRunUnary (dart:async/zone.dart:1134:38)
#6 _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#7 _FutureListener.handleValue (dart:async/future_impl.dart:140:18)
#8 Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:682:45)
#9 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#10 Future._completeWithValue (dart:async/future_impl.dart:526:5)
#11 Future._asyncComplete.<anonymous closure>
(dart:async/future_impl.dart:556:7)
#12 _rootRun (dart:async/zone.dart:1126:13)
#13 _CustomZone.run (dart:async/zone.dart:1023:19)
#14 _CustomZone.runGuarded (dart:async/zone.dart:925:7)
#15 _CustomZone.bindCallbackGuarded.<anonymous closure>
(dart:async/zone.dart:965:23)
#16 _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
#17 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
#18 _runPendingImmediateCallback
(dart:isolate-patch/isolate_patch.dart:118:13)
#19 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:405:11)
#20 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
#21 _RawReceivePortImpl._handleMessage
(dart:isolate-patch/isolate_patch.dart:168:12)
|
Also it is strange I can run success from Android Studio, but can't flutter run from command line. |
I having same problem
I try accepting the license with but it still does't work and I notice there is no TOOLs directory on SDK
|
Hi @vicentetfreitas @gdlis @RobbiNespu did you follow the instructions in your logs? PS D:\Workplace\flutter_projects> flutter doctor --android-licenses -
Android sdkmanager tool not found (C:\Users\Robbi\AppData\Local\Android\sdk\tools\bin\sdkmanager).
Try re-installing or updating your Android SDK,
visit https://flutter.dev/setup/#android-setup for detailed instructions. @izzzworm
Thank you all |
Your SDK folder doesn't have SDK ToolsTo download, SDK tools, Open Android Studio, go to SDK Manager and Then run Thank you |
C:\Users\KD\AndroidStudioProjects\flutter_app>flutter doctor --android-licenses --verbose #0 throwToolExit (package:flutter_tools/src/base/common.dart:27:3) |
Hi @vicentetfreitas @RobbiNespu @mukkulsingh Please download it manually from https://developer.android.com/studio Thank you |
Hello @TahaTesser Have Tried doing what you wrote. Unfortunately it didn't worked. C:\Users\KD\AppData\Local\Android\Sdk\tools\bin>flutter doctor --android-licenses --verbose #0 throwToolExit (package:flutter_tools/src/base/common.dart:27:3) C:\Users\KD\AppData\Local\Android\Sdk\tools\bin>sdkmanager --update With --install (optional), installs or updates packages.
With --update, all installed packages are updated to the latest version. With --list, all installed and available packages are printed out. With --licenses, show and offer the option to accept licenses for all With --version, prints the current version of sdkmanager. Common Arguments:
|
Hi all |
@iapicca I tried upgrading sdk from Android/Sdk/cmdline-tools/latest [!] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [√] Chrome - develop for the web [√] Android Studio (version 3.6) [√] VS Code (version 1.42.1) [√] Connected device (2 available) ! Doctor found issues in 1 category. Came across to many solution but not able to get through this issue with any of those solution out there. i would like to know why does flutter doctor tell us to update sdk even if we are using the updated (29) one. Please paste the solution here if anybody gets a working solution |
This is my solution: |
Re: 0x10000's suggestion: this might work in some cases but did not work for me. A more reliable solution is in my github comment (by mebden) here and in the stackoverflow exchange here. Basically, in the screen shot above, uncheck My hope is that this bug can be addressed by somebody in the next Flutter version, as several users have been affected from last week onwards. |
Your SDK tools folder name is wrong, rename it to `tools and you don't need latest folder i your tools |
My solution same like mentioned before, the SDK tool are obsolete so it won't appear by default. Open your SDK manager then uncheck if needed we can download package manually here https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip |
Google updated their android studio and didn't make flutter adapt to it which made the installation way harder .. |
This solution worked for me.1.Scroll down and Download Command line tools only from this link .[https://developer.android.com/studio#downloads] |
for android license status unknown issue I would recommend you guys to follow this answer |
Still having this problem: ✗ Android license status unknown. Log:
Cannot update SDKmanager. I've already tried re-installing all SDK tools (obsolete ones too) and via Android Studio. |
I think that if so many people are facing problems the problem should be resolved by the flutter team |
This issue is confirmed in the Flutter 1.12.13+hotfix.8 release, which at the time of writing is the latest version available in the |
heres the step by step guide
|
I solved my problem by doing this,
|
I already have the 'tools' folder because Android Studio was installed properly, with all the packages including 'Command line tools'. Running on macOS btw. |
The thing is, when I first installed Flutter all went fine and I already accepted all the licenses. When I tried 'flutter doctor' the next day, android licenses where back to not being accepted. I've tried everything, any other solutions? |
I have the same problem, went through all propositions without success.
I'm running MacOS Catalina |
I got that. And this helped, using
However
|
Here is how it worked for me. I Installed Android SDK using That created 2 folders: SDK folder which by default is After installation finished and faced several problems. I tried PolymathWhiz suggestion and I got a different message from the console. Then I tried this:
Which is good since I now only need to connect a device for it to work. |
Are you running on mac or PC? |
@g8d3 thanks mate that trick worked ! |
Locking this issue to prevent it being polluted by other unrelated issues. The issue reported at the top of the page is confirmed in the Flutter 1.12.13+hotfix.8 release, which at the time of writing is the latest version available in the For other issues, please open a new bug, including the results of |
Closing as fixed |
[Updated by @timsneath]
On a clean installation of Flutter 1.12 stable and Android Studio 3.6, you get the following error message:
Workaround is here: #51712 (comment)
The text was updated successfully, but these errors were encountered: