I'm using Ubuntu 18.04LTS, Android Studio v3.0.1, installed latest Android SDK API 30 & 29, Android SDK Build tools, Platform tools & Command-line tools(latest),downgraded to java jdk1.8, installed Dart plugin on VSCode, installed Dart and Flutter plugin on Android Studio, installed flutter using snap on terminal.
But when I run flutter doctor
, i get this
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.0, on Linux, locale en_IN)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Android Studio (version 3.0)
[!] Android Studio
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.44.0)
[!] Connected device
! No devices available
! Doctor found issues in 3 categories.
It says the plugin not installed even after I installed it and restarted android studio as well.
When i run flutter doctor --android-licenses
, i get all licenses and accept them by typing Y
in the terminal and even after this when i run flutter doctor
it still gives me same result.
There was an issue with Java 9 so downgraded JDK to 1.8 and yet issue isn't resolved.
run the following commands
$ export JAVA_HOME=`/usr/libexec/java_home -v 1.8*`
$ flutter doctor --android-licenses
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.