Android studio do not show devices for flutter - android-studio

I am new to Flutter and android studio, I followed the instructions of flutter.io , I created a blank app, and while I try to run I am unable to see the device lists. but it is available in device manager
Please see the screenshot.

Go to Tools->Troubleshoot Device Connections.
Connect your device over USB
If your device name does not show here then your USB or device has a problem.
You have to enable USB Debugging on your device.
Restart ADB Server.
I hope this addresses your issue.

You've not run your device....
Under Actions Click the Run button......
The emulator will start and your problem solved..

Related

Couldn't start project on Android: Error running adb: adb: device offline {ERROR}

I keep getting this error when trying to start emulator on android. I don't have a device plugged in only attempting to test to see if my new installations of android studio and emulators work, I am using a Mac with the M1 chip. Any help please.
Try reinstalling the android studio as it may be corrupted or change the device and see
Hope this works :)
It could be a number of different things that cause that error. Here are some troubleshooting steps to try:
Reboot the phone
Try a different USB cable, or unplug it and re-plug it back in
Use command line tools to relaunch adb if it gets hung up; try adb kill-server then adb start-server and then adb devices
Reset the USB debugging on the device in the settings; disable it and re-enable it
Try changing transfer modes in the USB debugging (i.e. camera PTP)
Close and restart Android Studio
Android studio emulators are still based on Intel Haxm virtualization software. I'm sure updates to AS are coming but for now you need to download a separate emulator to run an AVD (Android Virtual Device). It's pretty easy to download and install.
You can find it here: https://github.com/google/android-emulator-m1-preview

The Select Deployment Target does not show any device but USB device and other emulators are active

I have updated version (3.2) of android studio. I have my USB device recognized perfectly and installed a virtual device but nothing show up in the select deployment target window. I think it may be a bug. If any one know how how to fix it kindly guide me
If you're not seeing any devices, it is probably an adb error. Run adb kill-server; adb devices from the command line to restart the adb server.
If your devices show up, it might be that your devices have versions of Android that are below the minSdkVersion you have set for your app. In build.gradle or AndroidManifest.xml you specify the minimum OS version that is supported by the app. See https://developer.android.com/training/basics/supporting-devices/platforms and https://developer.android.com/studio/publish/versioning for more information.

How can I connect my Sony Xperia C4 E5333 to Android Studio?

I want to connect my Sony Xperia C4 E5333 to Android Studio for debugging my app, but Android Studio does not show my phone in ADB window.
I tried to install the USB driver for my phone but I can not find an USB driver for the E5333 model. In ADB, I have the Google USB driver installed. I installed Sony PC Companion 2.1, but when it tried updating, I got an error.
How can I connect my phone to Android Studio?
You need to install Sony driver for your phone, not Google USB Driver.
This one should do it: http://developer.sonymobile.com/downloads/drivers/xperia-c4-driver/
Also, you need to get to developer options and enable USB debugging. After that you are good to go.
Get the latest Google Usb Driver from SDK MANAGER > EXTRA
Open Device manager.
in Other Devices find your phone with a ? mark beside it
Right click on it and choose Update Driver. You would see this screen,
Choose Browse My Computer For Driver Software. You would see this screen,
Choose Let me pick from a list of device drivers from my computer. You would see this screen,
Choose Android Device and click Next. You would see this screen,
Choose Android Adb Interface and then click on Have Disk. You would see this screen,
Browse to where you installed your Sdk, SDK_PATH > extras > google > usb_driver
Click ok then next and your device installed !
if you still don't see your device type these commands in your cmd
adb kill-server
adb start-server

Android Studio does not detect my Moto G

I've connected my phone in the Camera mode, I have installed the latest motorola drivers from https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481/action/auth. And I've also installed the avd from
http://forum.xda-developers.com/showthread.php?t=2588979
My device is just not showing up in the available devices when I try testing my app. Please help.
Enable USB debugging on the device (Developer options).
I've followed this link https://www.youtube.com/watch?v=Qb2olFyoMV4 and it worked well with my Moto G 2nd Generation.
When I try to see the logs from my device on Android Monitor, I had to unlock my device and there was a message asking if it was ok to debug from this computer.
Allow USB Debug message
Hope it works for you too.

Issue with geny motion in android studio. can't get Virtual device to appear in AVD manager

first I create Motorola moto X vitual device tageting API 4.2.2 in android. this device was created successfully in geny motion. I then run this virtual device to see if it is operating correctly. Once started I keep getting this error message regardless of what i do
"Genymotion version and virtual device version do not match
Genmotion 2.2.2
Virtual Device 1.0.0
you should update you virtual device or create a new one to enjoy the new features"???
I dont have a clue how to update the virtual device? moreover I wasn't given the option to set the device when creating the device. just to choose target version of android. Can anybody guide me through how to do this? Also the UPDATE button cant be selected so i have to just select continue.
After this I change settings/ADB on the virtual device to point to the android sdk located at "C:/Program Files (x86)/Android/android-studio/sdk".
then I app the genymotion plugin to the list of plugins in settings. and following this I add the path location of the genymotion folder also in settings under IDE settings/ Genymotion and the path being "C:\Program Files\Genymobile\Genymotion"
When I open AVD manager the genymotion emulator is not visible so I cant select it to run my applications. I have tried setting "show chooser Dialog" in Run/debug configuration and also setting the correct sdk for the virtual device like I said earlier. If anyone can help me out with this I would be grateful otherwise It looks like i will have to use the standard emulator which is SH*t :) .hopefully this question can help someone in the future also. thanks in advance!
It seems your virtual device is very old.
If you use the free license you need to remove this old device and create a new one thanks to the "add" button on the Genymotion program.
Then launch the newly created virtual device, you should not see the Genymotion version and virtual device version do not match popup any more.
If it still chows up, send a report to the Genymotion support.
Concerning the AVD manager problem. Genymotion devices are not supposed to be added to this interface. To launch a Genymotion virtual device you can whether:
Open the Eclipse Genymotion plugin you already installed and configure (the small pink genymotion icon on the tool bar)
Or open the Genymotion program that will show you all the devices you already created. And where you can create new virtual devices.
When a device is launched, you can then debug on it easily, it is considered as any device connected to ADB like a physical device you plug on your computer.
One of the craziest tricks I've seen work (I know it sounds crazy but try it) is to stretch the columns in the device column when you go to run and it shows you no devices, device magically appears in list.

Resources