The AVD manager in Android Studio does not show my device, but the “adb devices” show it. Did I miss something obvious here?
To change what your app uses by default when you click run or debug in Android Studio, follow these steps:
1. go to Run
2. Click “ Change settings »
3. Choose a project
4. Find the ” Target device ” on the General tab on the Android Application Page.
It seems that you are switching what the project is building towards. If you import a project, it uses an emulator by default, not sure why.
I recently had problems with this, and no matter what I did (restart adb, edit adb_usb.ini, restart the computer sharing the usb port, reinstall the studio, etc.). I just couldn’t get it to work, and I couldn’t even discover my device using “adb devices”. Finally, about 2 hours after the game and testing, someone suggested switching to Ptp instead Mtp on my device. When I did this, I had a pop-up window on my device asking me to allow access to my Mac, and suddenly everything worked (I had to restart the studio so that it also appeared there).
Maybe I’ve come across this thread right now, but this is the first Google search result, and I’m having trouble finding an answer to this problem, so I thought it should be added as a solution.
On your device:
Go to settings / developer settings / enable USB debugging mode
If the option “enable USB debugging mode” is disabled. Then you can connect the device to the computer. Unplug the device and the option should now be available.
Note. On Android 4.2 and later, developer options are hidden by default. To make it available, go to Settings> “About phone” and click “Create number seven times.” Return to the previous screen to find developer options.
If this still does not help, you can do it with this expression:
How to enable developer options on YOUR_PHONE_TYPE
I had to killall adb because somehow Android Studio failed and no longer wants to communicate with adb. So my device did not appear.
Thus, we exit Android Studio, terminating all instances of adb in the terminal and launching Android Studio again (you need to ask whether debugging should be enabled).
It works for me by following these steps:
If you use Windows, the device will not appear due to a driver problem.
Go to the device manager (just search using “Start”) and find all the devices that display an error. Many androids will appear as an unknown USB device and have an exclamation mark. Select this device and try updating drivers for it. For part of the update, follow the link: universal adb
But before that, you need to update your sdk manager and make sure that the Google USB driver package is installed.
Upon completion, the driver files are downloaded to the \ extras \ google \ usb_driver \ directory. Tips : Search for “android_winusb.inf” under Windows Start and Open File Location to get the mentioned directory.
Open Device Manager, go to your Android device, right-click it and select “Update Driver”, then select “Browse Driver Software”. Before installing the Google USB driver, follow the directions to the file.
Restart Android Studio and developer options on the Android device and plug in the USB.
Some cables cannot be used for developer mode or file transfer. A solution could change your cable and not waste time.
My Nexus 5 phone did not have developer options in the settings menu. I had to do the following:
On Android 4.2 and later, the developer options are hidden by default. To make it available, go to Settings> “About phone” and click “Create number seven times.” Return to the previous screen to find developer options.
In my case
Android studio suddenly stops seeing my device
I will fix this by changing USB option on Media device (MTP)
How to get USB option from storage USB connection to computer
Debugging from developer options
Try again on the device, it should work
USB option only for charging
UPDATE ANSWER 07/26/2016
There are many reasons, such as abandoning developer mode.> USB debugging (if you do not see the developer option, click 7 times on the build number)
But I ran into another problem, and everything that was just works fine. Android app can not see my device
To fix this problem, you need to restart adb from the terminal
In the device section.> Click on the small down arrow.> restart adb
Make sure you download the correct API for the version that you are using the device. After updating the Android version of your device or switching to another device, you may not be able to get the correct API loaded on Android Studio. Do it:
Check the Android OS version on Android by choosing Settings> About phone> Android version
Make sure Android Studio has the correct API installed in the SDK manager
I found that what works for me is:
CD to sdk platform-tools folder
Check if adb sees your device
Video: Android Studio Cannot See Phone
If it displays “List of connected devices” and an empty line below, restart adb as follows:
Then restart. / Adb devices and. / Adb devices whether the device, for example, as follows:
A list of connected devices
Try the following solutions (for Windows):
Go to the installation path of the sdk tool and in the \ sdk \ platform-tools folder and run the following command:
If your device is listed, it should look something like this:
If not, follow these steps:
Try the following commands:
Make sure that your phone has the developer’s settings in the settings (if not, go to “Settings”, “About phone” (or device), click on the Android version several times until you see a message).
Make sure that USB debugging is enabled on your phone (go to “Developer options in the settings” and turn it on)
Make sure that you have selected the USB configuration setting for MTP (this is also in the developer settings).
Make sure you see the files on your device in Windows Explorer when connecting via USB.
Make sure you have a driver installed for your device (most often this happens when you first connect the USB cable).
In Windows, right-click on the computer and go to the device manager, check if you have an Android device right in the root folder and under it should be the Android Composite ADB interface. If you do not have this, you need to download the USB driver for Google. Get it here:
In the device manager, find your device (there should be a yellow exclamation point), right-click and update the driver (open the folder with the driver you just downloaded)
If this does not work, try restarting Android Studio or reconnecting the device.
Some cheap devices (about $ 30) do not provide USB drivers for connection in the device manager, so in this case you are out of luck.
After spending some time, I found that the problem was to enable the USB debugging feature. Just search on your mobile device Settings-> Developer Option> USB debugging. Just turn it on and it works. It might help someone!
If your phone has worked before
Before doing anything complicated, this can be a simple problem. Just unplug and plug in again.
If there are additional problems
You can also check if your configuration is configured to run on your phone.
Run> edit configurations
And make sure that you use a USB device or a selection dialog by default if you are going to switch between devices on your emulator.
Also try unchecking “Tools”. “Android”. “Enable ADB Integration”.
This works for me after upgrading Windows to 10.
In my case, the following steps helped to solve the problem:
1) Make sure that the “Google USB Driver” package is installed in the Android SDK Manager
2) Download “ADB Driver Installer 2.0” from here
3) Run the tool downloaded and plug in your smartphone; In my case, it showed that the driver was not installed correctly and suggested fixing it
After these steps, my Android studio instantly recognized the device! Both MTP and PTP began to work.
Tested for Samsung (Android 4.1.2) and Xiaomi MI4W (Android 4.4.4)
AVD Manager is designed for emulator images. It never shows hardware. This is true for any use of AVD Manager: Eclipse, Android Studio, etc.
If you still have this problem (later than in the summer of 2015), perhaps you should:
I recently installed Windows 10 (no update, clean install) and I forgot the ADB USB driver
Check your device driver if your device has Galaxy installed. Kise will look for your driver.
Click: Download Unified Toolbox for Android
Install drivers for your devices, you’re ready to go
I also had this problem. Having looked, although my edge is 6, the usb enable debugging has been grayed out and cannot be turned on. A quick Google search revealed that it was myKnox security program that prevented it from being used. All you have to do is remove myKnox and you can enable usb debugging. This solved my problem with the device selection dialog showing my connected phone.
Since the driver could not load, I was unable to connect to my device in Windows 7. I performed the following steps:
- Download Android USB driver from Intel website
- Install the driver and reboot the system
- Connect your device and it worked
I had a problem with the same question. I have tried all the tips in this thread in posts above me.
My situation was:. the computer saw my tablet. there was debug usb options in developer mode on. adb in sdk did not see my device, killing and starting did not help
The problem is that I had Samsung Galaxy drivers on my win8. When I went to the device manager, the Lenovo A7600 tablet appeared with a yellow marking. Settings> Update drivers.> choose from existing ones, and I connected Samsung drivers to this.
It worked like a charm.
To resolve the above problem, follow these steps:
- Right click on Project
- Select "Create run configurations"
- All tests. (Second option)
- General tab> Target device
In my case, and I know this is stupid, but here is what I had to do.
I tried all the solutions above and no one worked. A good key to t-shooting is when adb devices will not list the device, then you know that you are not cooking with gas yet.
Switching between USB modes will have no effect until the device is registered as a device via adb. You will know when this will happen because you will receive a hint about the RSA key.
It was a relatively new installation of Windows 7. Under USB, in the notification area of my phone, I switched to Install driver and let him install my adb driver. In my case, I was never going to get anything legal through the Internet.
As soon as I saw that I successfully installed, I switched to PTP and it all just worked.
Android Studio did not show my device (Samsung Galaxy Alpha) on Windows until I downloaded and installed the Windows driver from the Samsung support page. I had to use the MTP connection mode on the device. I also confirmed the authorization of the computer after I connected the device to it for the first time.
I ran into the same problem in Windows 8 and found a solution.
1) Right-click My Computer.
2) Click on the manager.
3) Go to the device manager.
4) Right-click on the name of the device (which is lower on other devices).
5) Click “Update Driver”.
6) Click on.
7) Click “Let me know. the label.”
The driver will be installed automatically.
His work is beautiful for me.
Surprisingly, what worked for me on Debian Linux was ONLY:
The device appeared in Android Studio as soon as I killed the server. The only reason I noticed this is because my terminal emulator window was transparent. : D
I have made many ways to solve this problem. Here is what you need to follow step by step. Hope this helps you.
Step 1. Make sure your device is turned on for development.
Step 2 Before connecting the device to a PC, make sure that you select the USB Connection method.
Step 3 When you connect the phone, you are presented with options for the USB Connection method, select Internet connection. Make sure you are connected to the Internet.
Step 4 Launch the application in Android Studio, it will ask you to authorize the device for development and select YES.
Step 5: Launch the application through Android Studio and select the device, not the emulator, and BINGO! Welcome to the Android development panel.
Update the latest USB driver
Install the Google USB driver
- In Android Studio, select “Service”> Android> “SDK Manager.”
- Click on the SDK Tools tab.
- Select the Google USB driver package and click Install.
- Continue installing the package. Upon completion, the driver files are downloaded to the \ extras \ google \ usb_driver \ directory.
Not sure if this question is still open. But I solved the problem by switching to another USB cable. Hope this can save a couple of hours. lol