Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter - Command line - Emulator- Device not found

Tags:

flutter

dart

Disclaimer - Newbie

Just DL everything needed to get started with Flutter on my Windows 10 pc.

Flutter sdk -saved to a folder on my desktop Git Google USB Driver
Visual Studio Code and its Flutter/Dart plug-ins Android Studio and its Flutter/Dart plug-ins

Now I can start up Android Studio and pick an emulator (by default "no device connected" shows), hit run and the emulator works but if I go to my command line here is what I get and I followed it up with 'flutter emulators' 'flutter doctor'

When I tell it to check for emulators it tells me "To run an emulator, run 'flutter emulators --launch '" Where do i find the ID?

C:\Users\admin\Desktop\Computer Science\Flutter Projects\first_app>flutter 
run
No connected devices.

C:\Users\admin\Desktop\Computer Science\Flutter Projects\first_app>flutter 
emulators
2 available emulators:

Nexus_5X_API_28_x86 • Nexus 5X • Google • Nexus 5X API 28 x86
Nexus_6P            • Nexus 6P • Google • Nexus 6P

To run an emulator, run 'flutter emulators --launch <emulator id>'.
To create a new emulator, run 'flutter emulators --create [--name xyz]'.

You can find more information on managing emulators at the links below:
https://developer.android.com/studio/run/managing-avds
https://developer.android.com/studio/command-line/avdmanager

C:\Users\admin\Desktop\Computer Science\Flutter Projects\first_app>flutter 
doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.8.2, on Microsoft Windows [Version 
10.0.17134.285], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[√] Android Studio (version 3.2)
[√] VS Code (version 1.27.2)
[!] Connected devices
    ! No devices available

! Doctor found issues in 1 category.
like image 678
sltdev Avatar asked Sep 30 '18 01:09

sltdev


People also ask

How do I enable emulator on flutter?

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.


2 Answers

Try this to start your emulator then you will se connected devices. Once you have running emulator try running flutter app. Right now you dont have any emulator running thays why its telling you No connected devices...

flutter emulators --launch Nexus_6P
like image 183
Ravi Avatar answered Sep 20 '22 16:09

Ravi


If you want to run app in your connect device through flutter, then first get the device name or id by typing flutter devices It will give you info enter image description here

And run the app by running this command

enter image description here

like image 34
dawncode Avatar answered Sep 21 '22 16:09

dawncode