-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Steps to reproduce
I run Flutter doctor --android-licenses and the recieve the following message...
PS C:> flutter doctor --android-licenses
[=======================================] 100% Computing updates...
5 of 7 SDK package licenses not accepted.
Review licenses that have not been accepted (y/N)?
Android sdkmanager tool was found, but failed to run
(C:\Users\antho\AppData\Local\Android\sdk\cmdline-tools\latest\bin\sdkmanager.bat): "exited code -1".
Try re-installing or updating your Android SDK,
visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions.
I have uninstall and reinstall Android Studio and JDK multiple times to be on the latest.
Actual results
PS C:> flutter doctor --android-licenses
[=======================================] 100% Computing updates...
5 of 7 SDK package licenses not accepted.
Review licenses that have not been accepted (y/N)?
Android sdkmanager tool was found, but failed to run
(C:\Users\antho\AppData\Local\Android\sdk\cmdline-tools\latest\bin\sdkmanager.bat): "exited code -1".
Try re-installing or updating your Android SDK,
visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions.
Logs
Logs
<!-- Paste your logs here -->
Flutter Doctor output
[✓] Flutter (Channel stable, 3.7.11, on Microsoft Windows [Version 10.0.22621.1555], locale en-US)
• Flutter version 3.7.11 on channel stable at C:\flutter\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f72efea (2 days ago), 2023-04-11 11:57:21 -0700
• Engine revision 1a65d409c7
• Dart version 2.19.6
• DevTools version 2.20.1
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
• Android SDK at C:\Users\antho\AppData\Local\Android\sdk
• Platform android-UpsideDownCake, build-tools 33.0.2
• Java binary at:
C:\Users\antho\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\221.6008.13.2211.9619390\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[✓] Visual Studio - develop for Windows (Visual Studio Build Tools 2019 16.11.24)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
• Visual Studio Build Tools 2019 version 16.11.33328.57
• Windows 10 SDK version 10.0.19041.0
[✓] Android Studio (version 2022.1)
• Android Studio at C:\Users\antho\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\221.6008.13.2211.9619390
• Flutter plugin version 73.0.1
• Dart plugin version 221.6103.1
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619)
[✓] VS Code (version 1.77.3)
• VS Code at C:\Users\antho\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.62.0
[✓] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22621.1555]
• Chrome (web) • chrome • web-javascript • Google Chrome 112.0.5615.49
• Edge (web) • edge • web-javascript • Microsoft Edge 112.0.1722.39
[✓] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 1 category.