如何在Android Studio和InttelliJ中安装flutter和dart? [英] How to install flutter and dart in Android Studio and InttelliJ?

查看:74
本文介绍了如何在Android Studio和InttelliJ中安装flutter和dart?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到安装问题.我跑步时得到以下信息扑扑医生

I am facing issues with installation. I get the following when I run flutter doctor

[✓] Flutter (Channel beta, v0.4.4, on Mac OS X 10.11.6 15G19009, locale en)
    • Flutter version 0.4.4 at /Users/divyakrishnan/Development/flutter
    • Framework revision f9bb4289e9 (11 days ago), 2018-05-11 21:44:54 -0700
    • Engine revision 06afdfe54e
    • Dart version 2.0.0-dev.54.0.flutter-46ab040e58

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Users/divyakrishnan/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • Java binary at: /Applications/Android Studio 3.0 Preview.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
    • All Android licenses accepted.

[!] iOS toolchain - develop for iOS devices
    ✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
      Download at: https://developer.apple.com/xcode/download/
      Or install Xcode via the App Store.
      Once installed, run:
        sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
    ✗ libimobiledevice and ideviceinstaller are not installed. To install, run:
        brew install --HEAD libimobiledevice
        brew install ideviceinstaller
    ✗ ios-deploy not installed. To install:
        brew install ios-deploy
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.
        For more info, see https://flutter.io/platform-plugins
      To install:
        brew install cocoapods
        pod setup

[✓] Android Studio
    • Android Studio at /Applications/Android Studio 3.0 Preview.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[!] IntelliJ IDEA Community Edition (version 2018.1.4)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

[!] Connected devices
    ! No devices available

我在Android Studio 3.0和IntelliJ中看不到flutter或dart插件.

推荐答案

默认情况下,Android Studio或IntelliJ未安装插件.您需要按照此页面中的说明自行安装它们:

The plugins are not installed by default with Android Studio or IntelliJ. You need to install them yourself using the instructions from this page:

安装Flutter和Dart插件

Flutter受到两个插件的支持:

Flutter is supported by two plugins:

  • Flutter插件为Flutter开发人员的工作流程(运行,调试,热重装等)提供了动力.
  • Dart插件提供代码分析(键入时进行代码验证,代码完成等).

要安装这些文件:

  1. 启动Android Studio.
  2. 打开插件首选项(在macOS上为 Preferences> Plugin ,在Windows和Linux上为 File> Settings> Plugins ).
  3. 选择浏览存储库...",选择Flutter插件,然后单击"安装".
  4. 提示安装Dart插件时,单击.
  5. 在提示时单击重新启动.
  1. Start the Android Studio.
  2. Open plugin preferences (Preferences>Plugins on macOS, File>Settings>Plugins on Windows & Linux).
  3. Select Browse repositories…, select the Flutter plugin and click install.
  4. Click Yes when prompted to install the Dart plugin.
  5. Click Restart when prompted.

这篇关于如何在Android Studio和InttelliJ中安装flutter和dart?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆