我已经通过sudo snap install flutter --classic
安装了flutter。我运行flutter doctor
之后。它告诉我我没有Android工具链。经过搜索,我找到了this,然后给了我
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.3, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[!] Android Studio
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[!] Android Studio
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[!] Connected device
! No devices available
我到处都在寻找这两个问题的解决方案,但没有找到。 Here说,重新启动后,我必须从Android Studio手动安装插件。但这对我没有帮助。 最后,我决定不拘泥于它,可能是这些问题不会影响我的工作。
我用这个tutorial写登录页面。之后,我正在寻找下一个问题的解决方案。没有模拟器!!!
我尝试了this,但这也无济于事。您能帮我解决我的问题吗,请问该怎么办。
PS:
我没有安装Android Studio。我从here下载了程序包,并通过命令./studio.sh
在“ / bin”目录中通过终端运行它。