Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Device list doesn't shows in Android Studio using Flutter

Tags:

I tried to develop app using Flutter(using Android studio IDE).Add flutter plugin & flutter SDK in studio and Everything is configured but emulator / real time device are not listed. Its shows error like "Unable to list devices: Unable to discover Android devices. Please run "flutter doctor" to diagnose potential issues" android studio with flutter

Ref link : https://flutter.io/setup-windows/#android-setup

https://flutter.io/get-started/test-drive/#androidsstudio

like image 384
Vadivel Avatar asked Mar 11 '18 17:03

Vadivel


People also ask

How do I add a device to Flutter?

Creating Connection Choose Device: Open your VS Code and from the bottom right corner of your home screen click on the Flutter Device option. Select Device: When you click on the Flutter Device icon, list of available devices will open up in the command palette. Select the emulator you just created.

Does Flutter work with Android Studio?

Android Studio offers a complete, integrated IDE experience for Flutter. Alternatively, you can also use IntelliJ: IntelliJ IDEA Community, version 2021.2 or later.


2 Answers

configure flutter in terminal to detect Android SDK and Android Studio:

$ flutter config --android-sdk /path/to/android/sdk
$ flutter config --android-studio-dir /path/to/android/studio

then restart Android Studio/Intellij. source: https://github.com/flutter/flutter-intellij/issues/2113#issuecomment-383412308

like image 94
Hanhan Avatar answered Oct 14 '22 04:10

Hanhan


If you configure flutter and android sdk both perfectly and you do not show the avd device list in android studio.

It's very simple way to show android emulator device list.

First create a new Android Emulator if already create you run the AVD manager then you can show the instead of emulator name

Before: https://i.stack.imgur.com/6np0m.png

After: https://i.stack.imgur.com/fiCYe.png

like image 21
Samad Talukder Avatar answered Oct 14 '22 04:10

Samad Talukder