当我尝试从终端运行flutter doctor
时,它会显示: -
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.2.8, on Linux, locale en_IN)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] Android Studio (version 3.0)
[✓] Connected devices (1 available)
• No issues found!
我尝试从 Android Studio - >运行的位置pubspec.yaml - > pub_action:flutter doctor 它显示: -
[✓] Flutter (Channel beta, v0.2.8, on Linux, locale en_IN)
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.io/setup/#android-setup for detailed instructions).
If Android SDK has been installed to a custom location, set $ANDROID_HOME to that location.
[✓] Android Studio (version 3.0)
[✓] Connected devices (1 available)
! Doctor found issues in 1 category.
- 我无法从Android工作室本身运行简单的颤动项目我试过并设置〜/ .bashrc 的路径仍然无法工作任何帮助将不胜感激。提前致谢
当我尝试以下命令时: -
echo $ANDROID_HOME
它给了我正确的sdk路径: -
/home/hardy/SDKVRUNDA/Sdk/
在echo $ ANDROID_HOME中是准确的 的 local.properties