When i tried to run my project in android studio it does not show any device
But i had correctly installed the adb interface driver and it also show in my device manager(Android Device -> Android Composite ADB Interface ).
My device is LAVA iris X1 (kitkat 4.4.2)
Usb debugging was on
usb connection was switched to PTP (Camera)
I had also tried certain posts but non of them works
Please provide a helpful solution.
Thanks in advance.
launch 2 devices at the same time, sometimes the firts device launched is not showing probably for some bug but the second is recognized
Did you download the proper drivers for your device? I also find it useful to have the device dialog come up. If you go to Run Configurations you can select an option which will show the device chooser every time. Sometimes I have to plug and unplug my phone once or twice for it to be recognized. This screens help me debug this potential issue. Other then that check the drivers for the device if on Windows.
Related
Suddenly my Android Studio stopped detecting all my devices, none of them is working. It happen from one execution to another. I've changed a few lines of code (1 min maybe?), hit run (instant run) and then I missed all my devices.
I'm using a Mac and as devices: Nexus 5x, Galaxy s6 and Oneplus One. What can be happening? I've checked previous questions here and tried all this:
Run configurations: no matter if I chose usb device or show the window, it does not work.
Tools > Android > Enable ADB integration: didn't help
Command line adb devices does not detect any either.
I've revoked and granted again USB authorizations. Still not working.
I've tried other apps I have, none work.
Restarted phones
Restarted android studio
Restarted computer
(Note: if I start an emulator it works, but I'd prefer to use physical device since I have to scan real barcodes)
Thanks a lot in advance.
On Lollipop 5.1
Go to About Phone
Click 7 times on Build Number. Now Developer options are enabled
Go back and Click Developer options
Enable USB debugging under Debugging.
Well, I've fixed. The problem in case any faces the same was a Stetho (http://facebook.github.io/stetho/) tab in chrome, the one you open by typing: chrome://inspect/#devices not sure about the reason because it's been open for 2 days now, but it was the cause, once I closed it, it worked.
Found this unaccepted answer here: macbook adb cannot open interface That for sure should be accepted.
EDIT: I've been able to replicate the problem. It happens when you have the devices tab open and try to run a second app that has stetho configured.
It happens if your device drivers not installed Please do this.
In Case of PC
Right click my computer select manage select device manager from left panel if your phone drivers not installed there will be yellow alert on driver right click on it select update driver software then select search automatically for update driver software.
Other
Please install the missing drivers of your phone.
I had the same problem . What I've done to solve it going to Setting >> Additional Setting >> Developer Option
Now select:
Developer option on
USB debugging on
Install via USB on
USB setting security on
Verify apps over USB
OK, what finally worked for me was to go into Settings\Developer options\Select USB Configuration and change it to PTP or MIDI....either one of those worked for me and all of the sudden my phone showed up and I was able to see and run my test app on my android phone.
This woorked for me
Go To Settings
Developer Options
Enable USB Debugging
Enable Verify Apps over USB
Select USB Configuration: Choose MIDI
I hope it also works for you
Eclipse started to driving me crazy.
While I was debugging via USB , my device was disappearing from Device Chooser dialog box list after every debugging session (same issue with this) I've tried to reset adb but nothing changed.
And then I decided to use debugging via WiFi. So I made all configuration as mentioned in adb help, successfully. After that, in my first try it worked like a charm but after debugging session it's disappered from device chooser list again. But it's appearing in DDMS tab and adb devices command.
It's ok in adb devices
also in DDMS
But when I try to run application
where is my device?!
Yes my device's Android API level is bigger than 11 and ADB over Network option is checked in device settings.
(I'm sure this problems are not about my USB cable or my device because I've tried them with 2 different USB cable and 2 different Android device -Galaxy S2 and XPeria Z3-. I also tried to reinstall different versions of Eclipse)
Is it time to start using Android Studio? Do you have any idea about fixing this problem? I've tried lots of things. I'm familiar with Eclipse's interface and want to keep continue using it.
I think I have done everything right but I cannot get Eclipse to recognize my plugged in running Samsung Tab-2. Below is what I have done. What have I done wrong?
1) I have instelled USB drivers and can move files from the tablet to the Windows XP computer.
2) I have enabled USB debugging on the phone
3) I have been debugging on a virtual device then sending the apd files over email to my tablet and phone. That works fine. Obviously, I have enabled that on the phone.
4) I set up Eclipse to always ask what device to debug on.
5) I plugged the tablet into the USB slot and it is recognized by Windows.
6) I read the instructions Here
7) I click debug and am faced with a blank list of devices under "Choosing a running Android Device". My tablet does not show up.
8) I find myself at wit's end (adventure reference).
9) I ask for help on Stackoverflow.
I think you should take a look at this answer. An identical issue was accepted at that post.
Hope it works to you!
Try a different MicroUSB cable, I have seen this affect the device showing up in Eclipse, even if the cable is working fine for everything else (even transferring files to/from that specific device).
If nothing works you can use adb over wifi by calling : adb connect "your ip adress". I am assuming the Tab runns Android ICS. You can enable Adb over wifi right under the USB debugging- menu point.
How many times have I called tech support and had them tell me to reboot windows? Well, the solution was to reboot windows. Nowhere in any of the installation instructions did I skip a step of rebooting but just thought I should try that.
I have a Samsung Galaxy S i9000 smartphone, and I want to debug my Android app on my device.
I read the instructions at http://developer.android.com/guide/developing/device.html. I must say that although I didn't install any other driver than the Kiel Software and the USB drivers coming with the smartphone itself, I can see my device on the list when I write adb devices -- I see a device there with some numbers at the beginning and than 'device'. I also see a device in my device manager as Samsung Android Composite ADB Interface under the ADB Interface branch. Also in DDMS tool I see two devices; one emulator, and the other device with the same number as I see in the command line.
I think everything is right so far, but when I press the run button in Eclipse, or the debug button, a Device Chooser dialog does not show up as described in the android development website. Has anyone any idea?
Check the Console window to see what is going on. The Device Chooser dialog only shows up if it cannot automatically select a target.
Well the steps should be:
- install drivers (or Kies, it's simpler for me since I connect a lot of different devices)
- check if USB Debugging is checked under Settings -> Applications -> Development -> USB Debugging
- check if the device shows up in the ADB list
If that doesn't work, as was the case with me once trying something on Honeycomb, try simply deleting any emulators and see if it doesn't automatically upload to your device.
As title, I can't able to find my phone device into Eclipse.
I activated on the my phone, either Application/Unknown Source and Application/Development/Debug USB.
But into Eclipse not appear any device phone, why?
Thanks'
Go to the cmd prompt, and then take it to the platform-tools.
Then type the commands
adb kill-server
and then
adb start-server
Then to list the connected devices,
adb devices
you will see the list of active devices including the emulator. If the device is not present, continue the steps for some time..
After you get the device listed among the active ones, you can run it in debug mode.
Think, this will help you..! :)
I just had the same problem on 2 of my phones (Nexus 1 and Amaze 4G). After some research I found that people try to overcome this by restarting Eclipse and ADB (only Eclipse won't do) but it took me rebooting the system and phone to make it work again. If you can go to Eclipse->Window->Open Perspective->DDMS and see if your phone shows there with red bug icon next to your app. If so then try what I described above. If you don't see your device in DDMS perspective then it's your USB driver that is not working and needs to be reinstalled
Had a similar problem with my LG P520. In my case, the problem was as a result of me setting the minimum Android level to Android 2.3(9) while the phone was a Froyo/Android 2.2(8) phone. Hence, it was not a compatible device and would hence not be shown in list of compatible devices.
connect your PC with internet may be it will install some software to connect it with the phone debugger and make sure you enable the usb debugging on your phone.