I try to run flutter doctor --android-licenses in windows but no output.And I try to run in administer but with the same result.
Just 2 seconds and it back to shell.
I have installed Android SDK Command-line Tools and it's ok to run Android Studio and package my apps(might means jdk and sdk environment is ok)
So what's the problem here?
Android Studio:
If you mean just "flutter doctor -v",it's like this:
[!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
• Android SDK at E:\Program Files (x86)\Sdk
• Platform android-32, build-tools 32.1.0-rc1
• Java binary at: E:\Program Files (x86)\android studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
X Android license status unknown.
Run flutter doctor --android-licenses
to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
If you mean "flutter doctor -v --android-licenses", still no output.
Pictures: I won't use Visual Stdio,so you can ignore it.
change locations:
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at E:\android\sdk
• Platform android-33, build-tools 33.0.0
• Java binary at: E:\android\studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
✗ Android license status unknown.
Run flutter doctor --android-licenses
to accept the SDK licenses.
PS C:\Users\wcyim> flutter doctor -vv --android-licenses