android - 如何在Android Studio和IntelliJ中安装flutter和dart?

标签 android intellij-idea dart flutter flutter-dependencies

我遇到了安装问题。我在运行时得到以下信息 flutter 医生

[✓] 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 默认不安装插件。您需要使用 this page 中的说明自行安装它们:

安装 Flutter 和 Dart 插件

Flutter is supported by two plugins:

  • The Flutter plugin powers Flutter developer workflows (running, debugging, hot reload, etc.).
  • The Dart plugin offers code analysis (code validation as you type, code completions, etc.).

要安装这些:

  1. 启动 Android Studio。
  2. 打开插件首选项(macOS 上的Preferences>Plugin,Windows 和 Linux 上的File>Settings>Plugins)。
  3. 选择浏览存储库...,选择 Flutter 插件并点击安装
  4. 当提示安装 Dart 插件时,单击
  5. 出现提示时点击重新启动

关于android - 如何在Android Studio和IntelliJ中安装flutter和dart?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50485795/

相关文章:

安卓视频流 : AsyncTask or UI thread?

android - 在 recyclerview 中显示来自服务器的数据时无限滚动

java - 与当前类相关的 IntelliJ IDEA 运行配置

git - IntelliJ IDEA git 集成和暂存区(索引)

java - IntelliJ/Maven repo 问题

dart - 安装核心元素和 polymer UI元素时出错

android水平滑动列表项

dart - 如何使用 main() 构造一个最小的 Dart Polymer 应用程序

dart - fontFamily 属性在 flutter 中无法正常工作

android - OpenTok Android Lib 如何以圆形显示发布者 View (相机预览)