Flutter plugin not installed error;. When running flutter doctor

前端 未结 22 1715
渐次进展
渐次进展 2020-11-28 11:07

I am configuring Flutter SDK on my Linux Ubuntu 16.4 system. Why am I getting the following error when I run the flutter doctor? I have specified b

相关标签:
22条回答
  • 2020-11-28 11:34

    I solved this problem by uninstalling flutter from the Plugins. After restarting Android Studio, I opened the plugins, and then it shows that my Dart plugin is not compatible with my Android Studio (v3.6). I updated Dart, restart android studio, then reinstall Flutter again. After that, I have to set the SDK path for the Flutter and voila everything works now :D

    0 讨论(0)
  • 2020-11-28 11:35

    You can just install the Flutter and Dart plugin in the android studio by following these steps:

    1. Start the Android Studio application
    2. Open plugin preferences (Preferences>Plugins on macOS, File>Settings>Plugins on Windows & Linux).
    3. Select Marketplace…, search the Flutter plugin, and click install.
    4. Click Yes when prompted to install the Dart plugin.
    5. Click on Apply and OK.
    6. Click "Restart" on the popup.

    The below image indicates where you should do it

    0 讨论(0)
  • 2020-11-28 11:36
    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel beta, v0.9.4, on Linux, locale en_IN)
    [✓] Android toolchain - develop for Android devices (Android SDK 28.0.1)
    [✓] Android Studio (version 3.1)
        ✗ Flutter plugin not installed; this adds Flutter specific functionality.
        ✗ Dart plugin not installed; this adds Dart specific functionality.
    [!] Connected devices
        ! No devices available
    

    Solution that worked for me:

    1. Just install plugins.
      Studio>>File>Settings>Plugins>Browse Repositories
    2. Search for flutter.
    3. Tap on Install (a dialog will pop regarding dart dependency. click Yes).
    4. Once the installation is finished restart android studio.

    Now run flutter doctor.

    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel beta, v0.9.4, on Linux, locale en_IN)
    [✓] Android toolchain - develop for Android devices (Android SDK 28.0.1)
    [✓] Android Studio (version 3.1)
    [!] Connected devices
        ! No devices available
    

    androidflutterdartflutter-doctor

    0 讨论(0)
  • 2020-11-28 11:37

    hello everyone I had the same issue and non of the above answers fixed so I went to the flutter official GitHub and found the answer there here is the link and you have to follow all these steps.

    https://github.com/flutter/flutter/issues/67986

    flutter upgrade

    flutter config --android-studio-dir="C:\Program Files\Android\Android Studio"

    flutter doctor -v

    then if the issue still persistes then just shift to the beta channel and the upgrade flutter then it will fix it.

    flutter channel beta

    flutter upgrade

    you can enable flutter web as an optional steps

    https://flutter.dev/docs/get-started/web

    0 讨论(0)
  • 2020-11-28 11:38

    I’ve just had this problem after an update and I solved entering File/Settings/Plugins. Then at the top of the window there are two options: Marketplace and Installed, then I clicked on Installed and on Flutter plugin there’s was message saying that the current version of Flutter does not support the new version of Android Studio, so there was a green button Written “Restart” then I clicked and when It opened again, the problem disappeared. May not be the same for you, but many people will search for it here and may help someone.

    0 讨论(0)
  • 2020-11-28 11:38

    You have to install Flutter and Dart both on Visual Studio Code as well as Android Studio!

    Try using the following command:

    flutter doctor --android-licenses, and press y to install all licenses.

    0 讨论(0)
提交回复
热议问题