androidandroid-studio

Android Studio - No device selected


Iam coding an flutter app in Mac. I am using Android Studio for development. I am trying to connect actual android device. I dont find the device to run the app in there. I always get "No device selected". I tried the options mentioned here (below), but still no luck. I dont think there is issue with USB, i am able to copy the files from mobile to mac.

  1. Enable Developer mode in device
  2. Enable USB debugging in device
  3. USB preference have it as "File Transfer".
  4. Downloaded Android File Transfer.

No luck. I am able to see this in the Device manager (screen shots below). Can anyone guide me on how to fix this.

Device: Moto e (Android 10). Android Studio version: 2024.1.1

Any help here will be greatly appreciated.

enter image description here

enter image description here

enter image description here

Thanks, SP


Solution

  • Was able to fix the issue. It was unable to locate android SDK. The following command added the sdk location "flutter config --android-sdk /path/to/sdk". You can get the path of SDK from Settings --> Languages & Frame works --> Android SDK --> Android SDK Location.

    Thanks for all the help