Flutter:No connected devices error – Solution

Flutter shows a No connected device found: Please connect a device error message or No supported devices connected error message basically when you have not connected a physical device or have not launched an Android Emulator or iOS simulator. Since Flutter supports both physical devices and emulators, we will show you how to set up and run Flutter app on both of them.

Android Emulator

If Virtual Device (Emulator) already present

  1. First, check if any Android virtual devices are already present in Android Studio by clicking the dropdown menu as shown in the image above. If any devices are present, it will be shown as Android SDK built for ..
  2. Click the Android SDK built for .. option to launch the emulator
  3. Once the emulator is launched click the play button or launch the app by flutter run command from the terminal

If Virtual Device (Emulator) is not present

  1. In the android studio, go to Tools>Android>AVD Manager
  2. Tap Create Virtual Device button
  3. Choose the device you want to install and click Next
  4. Choose the Android API version you want on your virtual device and click Next
  5. Choose the default orientation and click Finish. The virtual device will be installed
  6. Click the PLAY button below the action column to launch the emulator
  7. Once the emulator is launched click the play button or launch the app by “flutter run” command from the terminal

Android Physical Device

  1. On your physical device, go to Settings>System>About phone
  2. Down below the options, you could see an option Build Number. Tap the Build number 7 times to enable Developer Options.
  3. Now go back to Settings>System and choose Developer Options (some times under Advanced tab) and enable USB debugging
  4. Connect to your desktop via USB
  5. Once connected, the device will be visible under the Devices dropdown menu in Android Studio. Choose the device and click the play button or launch the app by “flutter run” command from the terminal.

iOS Simulator

  1. Make sure you have XCode installed on you Mac
  2. Select the iOS simulator from the devices dropdown menu
  3. Once the simulator is launched click the play button or launch the app by flutter run command from the terminal

iOS Physical Device

  1. Connect your device via USB to your Mac
  2. Choose the device from the devices dropdown menu
  3. Click the play button or launch the app by “flutter run” command from the terminal

If device is not present in the devices dropdown list

  1. Locate and open the ios/Runner.xcworkspace/contents.xcworkspacedata in Android studio
  2. Click open iOS Module in XCode option at the top right of Android Studio

  3. In XCode click Runner and add the device as shown in the image below. Here Abin’s iPhone is my device.

  4. Add team name as shown in the image below and click the Play button on XCode to run the app.

Scroll to Top