Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem in creating new Flutter project with Android Studio

I want to create a sample Flutter project with Android Studio but the problem is although I installed Flutter and Flutter language plugin in Android Studio 3.2.1 the menu is missing in File > New. I also downloaded the Flutter SDK and configured environment variables. Following is my flutter doctor result:

- Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version 6.1.7601], locale en-US)
 . Flutter version 1.0.0 at C:\flutter
 . Framework revision 5391447fae (7 weeks ago), 2018-11-29 19:41:26 -0800
 . Engine revision 7375a0f414
 . Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

- Android toolchain - develop for Android devices (Android SDK 28.0.3)
 . Android SDK at C:\sdk
 . Android NDK location not configured (optional; useful for native profiling support)
 . Platform android-28, build-tools 28.0.3
 . ANDROID_HOME = C:\sdk
 . Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
 . Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
 . All Android licenses accepted.

- Android Studio (version 2.3)
  . Android Studio at C:\Program Files\Android\Android Studio v2
  . Flutter plugin version 12.1 - the recommended minimum version is 16.0.0
  . Dart plugin version 162.2924
  . Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

- Android Studio (version 3.2)
  . Android Studio at C:\Program Files\Android\Android Studio
  . Flutter plugin version 31.3.1
  . Dart plugin version 181.5656
  . Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

+ IntelliJ IDEA Community Edition (version 15)
 . IntelliJ at C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 15.0.6
 . 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
 . This install is older than the minimum recommended version of 2017.1.0.

-IntelliJ IDEA Ultimate Edition (version 2018.3)
   .  IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2018.3.2
   .  Flutter plugin version 31.3.4
   .  Dart plugin version 183.4886.3

[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.
like image 514
Mohsen Emami Avatar asked Dec 17 '22 19:12

Mohsen Emami


2 Answers

Try enabling the plugins Android APK Support & Android NDK Support.

like image 75
Rohit P Soman Avatar answered Dec 21 '22 10:12

Rohit P Soman


I had this same problem (Android Studio 3.5 on a Mac with Catalina).

In Android Studio > Go to Preferences > Plugins and you will see both plugins (dart & flutter) disabled.

Click 'update', 'enable' and then the suggested 'restart IDE'.

It worked for me.

like image 28
Ptolomeo XII Avatar answered Dec 21 '22 09:12

Ptolomeo XII