Why won't Eclipse recognize my Android phone? - android

I have the Galaxy Nexus. I turned on debugging mode and when I tried to update driver software, I got a message saying that my driver was up to date.
I'm trying to run a simple "hello world" but Eclipse doesn't recognize that my phone is connected when I try to run it...

Try these three things in your devices Settings...
Unknown sources: Allow installation of non-market apps. (On my Galaxy sIII it is found under "Security")
Turn on USB debugging (under Developer options. Do this before you plug your device into your computer.
Turn on USB tethering (on my phone it is found under "Wireless and Network" settings

USB debugging mode should be on in your phone and if using Windows install all drivers required whereas in Mac and linux you just need to check your USB Debugging in Setting->Developer options

Related

Mobile not listed in adb devices only in my laptop

My Samsung J2 mobile is not getting listed in adb devices only on my Dell laptop.adb devices result
Because of this Enable USB debugging screen Enable USB debugging in not popping up
Things i have tried
Enabled developer options and USB debugging( Tried re enable after disabled also)
Restarted mobile and laptop
Deleted .android
Tried changing MTP to PTP
Factory reset my mobile and then enable Developer options and USB debug
Tried using more than one USB cables
Important Note : This issue is in my laptop only. In other machines its working fine. So i guess , problem is not in mobile
Try
Install Universal ADB installer to your laptop adbdriver.com/downloads
there also having Samsung official Android USB Driver
This error may occur due to ADB driver is not installed on your machine.
Install pdanet+ software for ADB drivers and it will help definitely.
Click here

Adb can't detect Samsung Note Pro although I installed USB driver

I want to use Samsung Note Pro for debugging on Windows with Xamarin.Forms,I installed Samsung USB Drivers
from this address and turned on developer mode
but still not work. When I call adb devices my device didn't appear in the list.
(As #Sreeraj's answer stated, installing Kia solves a lot of driver issues under Windows)
Once Developer Mode is enabled:
There is also a separate “Developers Options” section. The difference now is before you get to enable the USB debugging option, you must first enable or turn on “Developer Mode”
Update:
but when I call it gets the device as "unauthorized"
1) To allow app installs from non-Market apps, tap the menu button on your home screen, then choose Settings >> Applications >> Unknown sources.
2) Can't connect Nexus 4 to adb: unauthorized
I too had this problem once. Despite installing drivers from Samsung website, adb could not recognise my device. Then installing Samsung Kies software in my PC helped me. It may work.
After you enable Developer Mode you need to turn on USB Debugging before you connect the device with your PC.
You can also debug without connecting your device via wireless: How can I connect to Android with ADB over TCP?

Can't connect LG G3 to Android Studio

My LG G3 is not appearing in the device list for android studio. I'm on ASUS n550jk with Windows 10.
Things I have done:
USB Debugging Mode
Media sync(MTP)
Camera (PTP)
Google USB Drivers from Android SDK Manager
LG USB Drivers
Switching USB ports
Restarting PC
Nothing has worked. I got it to work a few months ago on Windows 8.1, but I can't remember what I did.
As on Android 6.0 device & Windows 10 this worked for me. Steps 1 & 2 before attaching phone to computer.
1) Activate developers settings (Settings -> General -> About phone -> Software info -> Press 7 times "Build number" button). After that it says "Now you are an developer".
2) Go back to General settings and press "Developer options". After that find option "USB debugging" and tick that box.
USB debugging
3) Attach phone to the computer via USB. Phone will ask "Allow this computer to access your phone data" "Allow". After that you should have "Tap for more USB options" -notification. Choose "Send images (PTP)"
Create "Hello World" -project as an test and try to to select deployment target again.
Make sure you enable developer options on your phone and check 'Enable USB Debugging'
On your Phone... Go to your settings: Go to "about phone" Tap on "Build Number" 7 times. This enables developer options Go to Developer options (in the settings app) Check - Enable USB Debugging
Did you make sure to install the adb drivers for your phone? Also make sure you have enabled debug mode on your device. If neither of those are the issue, maybe check here for further troubleshooting help.
When you connect your phone to your computer with Android studio running, you should see a dialog box asking for permission for your computer to debug your phone. Tap Yes and accept those permissions.
You should be set from there! Hit 'Run' in Android Studio and you should be good to go.
Hit me up on here if you have any further questions!
Switch USB PC connection from MTP to PTP
LG G3 requires you to 1) Activate developer's mode 2) Enable USB debugging BEFORE connecting your phone to the laptop 3) Accept the computer's RSA fingerprint when installing an apk from AndroidStudio and most importantly 4) Installing the phone on your computer.
Use this link and select your model. Without installing this software you will still be able to charge your phone and access its memory from your laptop but for it to appear as a device in Android Studio, install this.
I had a similar problem shortly after upgrading to MarshMallow. I had developer options on, but the "USB Debugging" option was disabled.
I had a problem with connection LG G4 phone with Android Studio, and try lots of combination like enabling developer mode, USB debugging, switching USB PC Connection from MTP to PTP and vise versa, restarting phone...But no csucces until I downloaded and installed Windows USB driver from this location http://www.lg.com/in/support/software-firmware and choose LG G4 Stylus. My phone is LG G4 Leather dual sim, but works with selection above.
you should go to settings->Common->Software info and click Build number 7 times in LG G3
Had the same problem with my LG G7, this page helped me solve it.
Essentially, what was missing, besides enabling USB Debugging, was enabling USB Tethering. For that:
Look for "tethering" in your settings search bar.
Enable it after clicking on the first option.
Now your LG G7 should appear as LM G710 (mobile) under your devices Android Studio dropdown menu. Select it as your current main device.
Run your main.dart with the play button (or flutter run on the terminal). It will also appear as an available device in VS Code if you prefer it as your IDE.

Cannot detect Sony Xperia in Eclipse

I am totally new at testing apps on devices, especially the Sony Xperia. I am testing apps using the Android emulator, but I have now a Sony Xperia. First I have connected the device to the laptop via USB. But the laptop couldn't detect my phone. Is a driver necessary for Eclipse to detect the phone?
Download the correct driver for your phone, make sure your phone has enabled USB debugging and then connect it to proceed with the install.
Download drivers from:
http://developer.sonymobile.com/downloads/drivers/
Even though this question was posted long time ago, I didn't find 100% correct answer from previous replies. Most of replies are useful, but here is one final step for debugging apps on Sony Xperia devices.
My Sony Xperia T has not been visible in Eclipse even though I installed PC Companion and in mobile phone, I set developers options debugging mode!
Xperia has very strange option:
Settings > Xperia > USB Connectivity > USB connection mode
and select Mass storage mode (MSC).
Note that the USB cable must be unplugged to change this option.
By default, Media transfer mode (MTP) was selected. If MTP is selected even little bug is shown in notification bar debugging is not possible!
These were my steps to solve the problem:
On SONY XPERIA Z
Enable USB debugging (http://developer.android.com/tools/device.html#setting-up)
Settings > Developer > USB-Debugging = Enabled
Settings > Xperia > USB Connectivity > USB connection mode = MSC
Settings > Xperia > USB Connectivity > Install software = Disabled (!!!)
On Windows7
Google USB drivers were already installed for another device
Download XPERIA drivers from: http://developer.sonymobile.com/downloads/drivers/
Connect XPERIA via USB
Device manager > Unknown device > Install driver from downloaded file
Don't forget to enable usb debugging in the phone setting.
Yes, eclipse needs drivers. You need to install drivers for the phone, and then restart eclipse. You then need to add the xperia through the device manager in eclipse.
Are you running windows??
Start eclipse
open the android SDK manager,it will load the repository.
select the package for sony and download it.
restart eclipse,and you are good to go.
Try to Install PC Companion here:
http://www.sonymobile.com/gb/tools/pc-companion/
I had a problem connecting a Sony Xperia Tipo to Eclipse for android debugging. I went through all the steps already recommended (installing sony drivers, USB debugging on, etc), but was still getting a "driver not found" error when I connected the Tipo to my PC with USB debug switched on.
I fixed the problem starting with the driver install instructions for a Sony Tablet, http://www.kb.sony.com/selfservice/microsites/search.do?cmd=displayKC&externalId=C1024692&fes=true
Then I looked through Windows event viewer to find the find the details of the previous driver install failures, which gave me the correct device ID string for the Tipo. I added that to the end of the [Google.NTx86] section of android_winsub.inf, following the same pattern as for the Sony Tablet. It now contains this:
[Google.NTx86]
;SONY Sony Tipo
%CompositeAdbInterface% = USB_Install, USB\VID_0FCE&PID_5170&MI_01
Finally I reconnected the Tipo to my PC, went for the manual driver search options during driver install, pointed it to the Google USB driver directory, and it installed the Google drivers successfully. Now Eclipse is connecting to the Tipo and I can test and debug my app.
SOLUTION ! : I had that problem with the detection of the SONY XPERIA Z tablet only with Eclipse and did everything in the book to connect it without success :
Checked that the Sony USB driver was updated on the PC,
enabled USB debugging in the developpers options,
tried the Media Transfer Protocol (MTP),
tried the Mass Storage Configuration (MSC),
still the Eclipse command Run responded with a 'No compatible device found" message
until I downloaded the Google USB driver in the SDK manager and the DEVICE WAS AT LAST DETECTED.
This is all the more so strange that the Google Driver is introduced as dedicated to Nexus tablets only !
So if this can help ....
I've just fixed this problem recently. Here's the steps you should try as follows:
enable usb debugging
change to mass storage device
reset DDMS - adb
install driver
Then in eclipse it should show up as an Android device :)
solution for sony Mobile usb driver for Window 7
After googling and more time spend on this we find the solution Sony tipo & Sony M mobile are detecting by eclipse .
Steps are 1.install the latest sony companion
2- go to settings>>xperia>> connectivity>>USB connectivity mode>>MTP
3- restart eclipse and run your project Android Device Chooser show your device
donot forgot to check the usb debugging
This answer is more general to not finding your device. But if you have dead ADB processes running, you might have to kill them (and start a new one) in order to pick your device.
For me, it works when combining Damir's & Michell Bak's answers.
First need to change device form MTP mode to MSC mode as Damir mentioned, then download and install driver to your PC as Michell Bak mentioned.
Most new Sony device default setting USB connection mode to MTP and the setting location is different from other android devices. Besides, driver can not install automatically and need to download form official site.
Steps to debug using Sony Xperia :
Settings > Xperia > USB Connectivity > USB connection mode
and select Mass storage mode (MSC).
The USB cable must be unplugged to change this option.
By default, Media transfer mode (MTP) was selected.
Untick "Install software"
I had same problem with my Xperia Z3+ (android 5.02) with Android studio 1.3.
I installed new drivers and XPeria Companion but it didn't help.
However after I enabled hotspot via USB it started to work. Don't know if all of these was needed of if it was only the last one. Anyway I did
1. Settings->More...->Internetsharing hotspot->USB-sharing to on.
2. In the pop-up accept USB debugging.

how to run android apps in devices

I installed the driver for Samsung Galaxy 10.1 tablet in my PC (Windows7), but i can't get device-name when I run adb device command in cmd prompt.
If any solution for that, please share it with me
You need to enable usb debugging on your device. Check this post also Problem when connecting my device to PC? ,if enabling USB debugging doesn't help.
As mihail wrote - you need to enable usb debugging. Unplug the usb cable, go to Settings -> Manage Applications -> Usb debugging -> turn in on and re-plug the cable. Device should be recognized as development one and drivers will be installed(win7 should find them automatically)

Categories

Resources