Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install flutter and dart in Android Studio and InttelliJ?

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

I do not see the flutter or dart plugin in Android Studio 3.0 and IntelliJ.

like image 766
Divya Krishnan Avatar asked May 23 '18 10:05

Divya Krishnan


2 Answers

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

Install the Flutter and Dart plugins

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.).

To install these:

  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.
like image 194
Danny Tuppeny Avatar answered Oct 17 '22 19:10

Danny Tuppeny


Just follow these steps:

  1. Go to Plugins.
    Plugin

  2. Browse Repositories.
    Click Browse repositories

  3. Search for flutter.
    Search flutter

  4. Tap on Install (a dialog will pop regarding dart dependency. click Yes).
    Agree to install dart

  5. Once the installation is finished restart android studio.
    Restart android studio

Hope it helps.

like image 4
Manjunath Rao Avatar answered Oct 17 '22 18:10

Manjunath Rao