如何在Android Studio和IntelliJ中安装颤振和飞镖?

问题描述 投票:2回答:6

我正面临安装问题。当我跑到医生那里时,我得到以下信息

[✓] 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 intellij-idea dart flutter flutter-dependencies
6个回答
4
投票

默认情况下,Android Studio或IntelliJ不会安装插件。您需要使用this page的说明自行安装它们:

安装Flutter和Dart插件

两个插件支持Flutter:

  • Flutter插件支持Flutter开发人员工作流程(运行,调试,热重新加载等)。
  • Dart插件提供代码分析(键入代码验证,代码完成等)。

要安装这些:

  • 启动Android Studio。
  • 打开插件首选项(首选项> macOS上的插件,Windows和Linux上的文件>设置>插件)。
  • 选择Browse repositories ...,选择Flutter插件,然后单击install。
  • 提示安装Dart插件时单击是。
  • 出现提示时单击“重启

1
投票

只需按以下步骤操作:

  1. 转到插件。 Plugin
  2. 浏览存储库。 Click Browse repositories
  3. 搜索扑。 Search flutter
  4. 点击安装(弹出一个关于dart依赖关系的对话框。单击是)。 Agree to install dart
  5. 一旦安装完成,重新启动android studio。 Restart android studio

希望能帮助到你。


1
投票

这是安装Android Studio的步骤:

1.Go to Settings->Plugin->Install Flutter and Dart->Restart Android Studio
2.Download  the flutter sdk
3.In the environment Variable->User Variable->
ANDROID_HOME F:\AndroidSDK(Paste your Android SDK Path)
Path:F:\AndroidSDk;(Paste your Android SDK Path)
     c:\ProgramFiles\Java\jdk\1.8.0_20\bin;(Paste your jdk Path)
     c:\Users\Desktop\flutter\bin;(Paste your Flutter SDK Path)
4.Git install at c:\ProgramFiles\Git
5.Open Gitbash
$flutter doctor
$flutter doctor --android-licenses
Accept the licences Y Y Y Y
Make sure your Device should be connected your PC   

0
投票

将Flutter和Dart插件安装到Android Studio非常简单 - 按照以下步骤安装 -

  1. 单击Configure - > Plugins
  2. 从“搜索”框中浏览Flutter存储库
  3. 单击“安装”按钮
  4. 单击是以从Alter提示符安装Dart插件
  5. 完成所有过程后重启Android Studio以激活插件

有关Click here to find detail steps with graphical inteface的更多信息


0
投票

其中一个最重要的东西总是“RUN AS ADMINISTRATOR”你IDE,即Android ..等等,以避免出现多次错误。


0
投票

enter image description here

我有同样的问题,这些是解决我的问题的步骤(Install the Flutter and Dart plugins):

  1. 启动Android Studio。
  2. 打开插件首选项(首选项> macOS上的插件,Windows和Linux上的文件>设置>插件)。
  3. 选择Browse repositories,选择Flutter插件,然后单击Install。

enter image description here

  1. 提示安装Dart插件时单击是。

enter image description here

  1. 出现提示时单击“重启

enter image description here

现在运行Android Studio。

enter image description here

运行flutter doctor。你应该得到这个输出:

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.