Flutter plugin not installed error;. When running flutter doctor

前端 未结 22 1714
渐次进展
渐次进展 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:40

    When you execute the flutter doctor command it checks your environment and displays a report to the terminal window. In your case it seems that you did not install the dart and flutter plugin to be able to use them in Android Studio.

    To install a plugin, click on Files>Settings>Plugins>install jetbrain plugins

    The plugins will add new functionalities to android studio related to flutter. Example it will add the flutter inspector, outliner.

    The SDK that you added to the path, will be needed when creating a new flutter project.

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

    According to following images first install required flutter and dart plugins and then after downloading Flutter sdk from official-flutter-sdk-download-page, add flutter and dart paths:

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

    You missed this step in the installation process.

    Install the Flutter and Dart plugins:

    • Start Android Studio.
    • Open plugin preferences (File → Settings → Plugins on Windows & Linux OR Preferences → Plugins on macOS).
    • Select Browse repositories, select the Flutter plugin and click Install.
    • Click Yes when prompted to install the Dart plugin.
    • Click Restart when prompted.

    If are using Visual Studio Code, to Install the Flutter and Dart plugins:

    • Start VS Code.
    • Invoke View → Command Palette.
    • Type install, and select Extensions: Install Extensions.
    • Type flutter in the extensions search field, select Flutter in the list, and click Install. This also installs the required Dart plugin.
    • Validate your setup with the Flutter Doctor
    • Invoke View → Command Palette….
    • Type doctor, and select the Flutter: Run Flutter Doctor.

    Review the output in the OUTPUT pane for any issues.

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

    If you are using only VSCode for development then you don't need to install plugins for Android Studio and vice versa. It will never give you a problem.

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