这是我的 flutter医生:
[✓] Flutter (Channel stable, v1.17.5, on Linux, locale en_US.UTF-8)
[!] Android toolchain - develop for Android devices (Android SDK version
27.0.1)
✗ Flutter requires Android SDK 28 and the Android BuildTools 28.0.3
To update using sdkmanager, run:
"/usr/lib/android-sdk/tools/bin/sdkmanager" "platforms;android-28"
"build-tools;28.0.3"
or visit https://flutter.dev/docs/get-started/install/linux#android-setup
for detailed instructions.
✗ Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit visit
https://flutter.dev/docs/get-started/install/linux#android-setup for
detailed instructions.
[✓] Android Studio (version 4.0)
我尝试了命令 flutter --android-licenses
但是它给了我错误: 找不到Android sdkmanager工具(/ usr / lib / android-sdk / tools / bin / sdkmanager)。 尝试重新安装或更新您的Android SDK, 访问https://flutter.dev/docs/get-started/install/linux#android-setup 详细说明。
我已将bashrc中的路径设置为sdk:
export PATH="$PATH:/home/myname/Android/Sdk/tools/bin/sdkmanager"
我该如何解决?
答案 0 :(得分:0)
尝试将ANDROID_HOME
设置为/home/myname/Android/Sdk