Eclipse won't recognize my Android Device - android

I am working on my very first android app (yay), and I wanted to connect my Samsung Galaxy Note II to Eclipse to try out my app there. However, although my device seems to be detected, Eclipse won't recognize my device, making me unable to select it to run the app on. I can run it fine on the emulators though.
I have tried:
going into developer mode and enabling USB debugging on my phone
installing Samsung Kies
going into Samsung's site and downloading the USB driver that I found under my phone's model
restarting the adb stuff with command prompt (adb kill-server then adb start-server) then starting up Eclipse again
killing the adb stuff from Task Manager then starting up Eclipse again
...and I think that's it, and it's still not working!
If it helps, I am running on Windows 8, min API 8, target API 21, compile with API 21, and my phone is running API 20 (I think). Anyone know what I can do to fix this? Thanks!

Select at your device option "Connect as camera". After you connected your phone, on your device will appear a message asking for "trust your pc".

Related

Install Android driver for Ollee tablet

I may have made a mistake but I purchased a $99 Ollee brand Android tablet (M16071A) for use with debugging apps. It runs Android 5.1.1.
I can't get it to show in ADB when I run adb devices and in Windows Device Manager it always shows as having no driver.
The hardware states it runs an Intel Atom processor.
Here's what I've done so far:
1) Turned on USB debugging on the device
2) Installed latest Google USB Driver - didn't work.
3) Located the Intel driver (1.10 I think it was) and installed - didn't work
4) For each attempt I tried with the Tablet in both MTP and non-MTP modes
I have tried navigating to both drivers via the 'manually install a driver' process, selecting the location on my drive. Neither worked.
I'm running out of ideas and everything I've read is just a variation of the above.
I'm beginning to think I bought a tablet that simply doesn't work for debugging.
Are there any other steps I can try to get this working?
Thanks in advance

Unable to run Android application on Motorola XT907

I'm having issues running my Android application on a Motorola XT907 phone. I'm using Eclipse. USB debugging is enabled on the device, and I was able to get my application on two other phones, yet I'm having trouble with this one.
Eclipse is set up so that I have to select the device when I run the application.
In my manifest, minSdkVersion is 14, and targetSdkVersion is 19. The phone I'm using is running 4.4.2.
In the project properties, the Project Build Target is set to Android 4.4.2.
I'm running Windows 8.
Here is what I tried so far:
Rebooted the device.
Ran commands to restart adb. (adb kill-server, adb start-server)
Restarted Eclipse
Restarted my computer
Lastly, I have tried manually installing driver software, but I am unable to do this properly. This was my procedure:
Open Device Manager
Right click on XT907 under Portable Devices and select Update Driver Software...
Select Browse my computer for driver software
Select Let me pick from a list of device drivers on my computer
Select Have Disk...
Browse to adt-bundle-windows-x86_64-20140321/sdk/extras/google/usb_driver/android_winusb.inf and click Open, then OK
This is where I run into an issue. I get a dialog with the title "Select Device" that says "The folder you specified doesn't contain a compatible software driver for your device. If the folder contains a driver, make sure it is designed to work with Windows for x64-based systems."
Does anyone know how to solve this issue?
try this:
on your phone, activate usb debugging (and enable ADB);
connect the phone to the same network of your pc. connect USB too.
in your command prompt go to your adb.exe folder (.../sdk/platform-tools/) and execute adb connect (your mobile IP)
I use this on my Samsung nexus without drivers installed.
Did you try the driver from the motorola site of this phone :
https://motorola-global-portal.custhelp.com/app/answers/prod_answer_detail/a_id/89608/p/30,6720,8577
?

Android Device Chooser: Cannot Detect Device

I am trying to use my Nexus 4 to run a hello world app. I'm using the Java ADT with Eclipse.
I cannot detect the device.
Nexus 4: Android 4.4.2
Java ADT: build v22.3.0-887826
Windows 7 Professional x64
Java JDK: jdk-7u51-windows-x64
ADB v1.0.31
Project build target is 4.4.2 (API 19). Minimum required version is API 8.
./adb devices shows no devices.
I am in USB debugging mode on the device. I have allowed installation of non-play-store apps.
My computer detects the phone as a media device (MTP), not as a camera (PTP).
I do not get a prompt asking me if I accept an RSA key.
Things I have tried:
Download USB drivers from here: http://developer.android.com/sdk/win-usb.html#top then:
Start > Properties > Device Manager > Portable Devices > Nexus 4 > Properties > Update Driver > Browse > {Download Folder}
I get a popup telling me that the drivers are up to date.
Changing the cable
Changing the USB port
Restarting Eclipse
Restarting the adb server (kill-server > start-server > devices)
Restarting the phone
Restarting the computer
Editing android_winusb.inf, as described here: USB driving on Android - new devices
I have tried everything I've seen on these pages:
http://developer.android.com/tools/device.html
http://androidsecurity.wordpress.com/2013/06/05/install-google-nexus-4-adb-usb-drivers-on-windows-android-studio/
Android Device Chooser -- device not showing up
How do I deploy HelloWorld app to HTC Eris Droid?
EDIT: I tried to enable ADB over wifi. So I installed ADB WiFi off the play store. It needs root permission, so I tried to root my phone using Kingo Root. Kingo Root does not work. It's giving me the message "No Device Connected!". I can transfer files from the device, and it gets detected when I plug it in, so I don't know it what capacity it "is not connected".
EDIT2: I tried to enable ADB over wifi as described here: How can I connect to Android with ADB over TCP?
adb tcpip 5555 gives me "error: device not found". Looks like inability to detect the device is a common failure mode. I suspect that fixing that will let everything else work as intended.
Android debugging via usb can be a bit hit-and-miss. I have one phone that never connects, one that rarely connects, and one that seems to work pretty much every time (I still have to do the 'unplug/replug/restart' shuffle from time to time)
I would suggest investigating WiFi ADB. If it works with your device (not all devices support it) then it'll save you a lot of time in the long term:
Install one of the various WiFi debug apps from the market
Run it and note the IP address and port it gives you
Navigate to where your android sdk platfrom tools are installed (a default Windows install should be C:\Android\sdk\platform-tools
Type adb connect [ipaddress]:[portno] (ex adb connect 192.168.1.100:5555)
If your device supports wifi debugging, it should show up in Eclipse within a couple of seconds, and you never need to do the plug in/unplug/restart shuffle again!
You don't need any third-party application. See this answer and set-up WiFi debugging with ADB.
EDIT:
You don't need root also.
Check my answer here: You should install the correct drivers its really easy by following the steps from the video
Hope that helps! :)

Nexus 5 (Kitkat 4.4) won't authorize my Windows 8 computer

I'm trying to do some app development for Android with Eclipse and my Nexus 5.
However, after the first time loading MyFirstApp from Eclipse, I can't seem to get the authorization right.
When I run adb devices from the command prompt, I end up getting
0350b965215d9854 unauthorized
or
0350b965215d9854 offline
and even after restarting everything, I only sporadically get the authorization popup on my phone. Even if I select 'always allow from this computer' checkbox (pic below), my computer remains unauthorized. I have never had it remember authorizing my computer as the checkbox would suggest.
A few times, after killing the server and restarting the server multiple times, adb will recognize the device, as after typing "adb devices", I get
0350b965215d9854 device
But if I try running the app in eclipse I'll get the following error message.
[2013-11-09 18:10:16 - MyFirstApp] Failed to install MyFirstApp.apk on device '0350b965215d9854': timeout
[2013-11-09 18:10:16 - MyFirstApp] Launch canceled!
I'm also unable to run shell or other commands from adb.
I've verified I'm using the latest usb drivers, android sdk, and eclipse release and have tried the following fixes:
On Nexus 5:
Booting in Safe mode
Toggling/untoggling USB Debugging
Revoking USB debugging authorization and reauthorizing
Restarting the phone
Allowing permissions on a one-time basis
On Windows 8:
Restarting the computer
Restarting Eclipse
Killing/starting adb from cmd
Killing adb from task manager
Reinstalling Eclipse
Reinstalling google's USB drivers
Installing the nexus 5 line in google's drivers as per this
question
Reinstalling the Android SDK
Changing USB Ports
I've seen very similar posts for the Nexus 4 and Nexus 7, but after trying everything contained in those solutions, I'm still not getting anywhere.
Here's my solution
1. I re-download the latest ADT bundle
2. uninstall the old driver in "My Computer" -> "Device Manager" (delete the old driver also)
3. Right click on "Nexus 5" and update the driver using the one under "[New ADT Path]/sdk/extra/google/usb_driver"
4. Turn on debug mode (click on KRT16M multi-times)
5. Deploy my first app . And a popup on device appears. Click "Yes" to accept the key.
Good luck!
Have you tried updating both the SDK and ADT ? Support for Kitkat is provided in the latests ADT
For me a tutorial provided by AndroidGeeks helped me fix the connection issues to my Windows (7) PC.
"Make sure to enable the USB Debugging for your Google Nexus 5 from the Developer Options first.
Open Settings, then About Phone.
Tap the Build Number seven times to unlock Developer Options.
Now you can continue to the tutorial.
How to install Google Nexus 5 USB / ADB / Fasboot / Bootloader drivers:
Download the Nexus 5 Drivers from here.
Extract the zip contents and place all files in a single folder on your desktop.
Connect your device to your computer.
Launch the Device Manager on your PC.
Now you should see the Nexus 5 listed in the hardware list.
Right-click the ‘Nexus 5′ line and then click on Update Driver Software.
Next, click the ‘browse my computer’ option.
In the new window click on ‘Browse…’ button.
Go to folder unzipped at step 2. Select the folder where you extract the USB Drivers. Click Next. - make sure to tick the subfolder box too.
Now, the Windows installer will search for Nexus 5 drivers, click Install when asked for permission.
Wait for the process to complete and then check the Device Manager list to confirm that the installation was successful.
Also, you should launch the device in Bootloader Mode to check and see if the device is connected by your computer. If not, then you should stay in Bootloader Mode menu and then repeat the entire tutorial listed above. Eventually, the Google Nexus 5 will be recognized by your PC."
Link: http://www.android.gs/download-and-install-google-nexus-5-usb-drivers-adb-fastboot/
After implementing Nevin Chen's steps above without success, I ended up upgrading my system to Windows 8.1 for unrelated reasons. Out of curiosity I tried usb debugging again, and it worked the first time without problems. It has continued to work since.
I can only suspect that the problem was a system setting that was installed with an incorrect driver that only a system restore or upgrade would end up rewriting. Trying to uninstall the drivers from the device manager seemed not to help the problem.
I would be curious to know if anybody else has solved this problem with a system restore or upgrade.
On Windows 7, I tried the instructions in the following link: https://developer.android.com/tools/extras/oem-usb.html#InstallingDriver
I didn't get anywhere after several attempts with restarts of both the computer & device, and I tried multiple USB ports. I also switched from Nova Launcher to the stock launcher with no signs of improvement.
In the end, I changed usb cables and it worked!
The first cable was from a Samsung Galaxy S4 and had a noise reduction choke that was not present on the stock Nexus 5 usb cable.
I am using a brand new window 8 laptop:
Following steps works for me:
1. Download the latest ADT bundle
2.connect my nexus 5 to pc (it recognize the device after installing the default usb driver)
3 From Device Manager Right click on "Nexus 5" and update the driver using the one under "[New ADT Path]/sdk/extra/google/usb_driver"
4.Turn on debug mode (click on KRT16M multi-times)
works like a charm!
enter link description hereif you are using windows 7 and earlier, Adb installer works well. you just have to install the app and when u plug in your smartphone, it will recognize the build and get you what you need.
works well

Android - Device not detected

I'm trying to test an Android Application on my Galaxy Nexus (from Google). I use Windows 7 Home Premium 64 bit and Eclipse Java EE IDE for Web Developers.
My device doesn't show in Eclipse DDMS view. My device also doesn't show when I run adb devices in cmd.
I have USB debugging enabled.
When I try to install the USB driver as shown here I get a message that my device software is up to date.
I also tried killing the adb server and starting it again.
Give the Universal Naked Driver a try? Be sure to follow the steps in the forum post.
Nexus devices require the Google USB Drivers, you can get them through the SDK Manager.
If you have them installed and the device still is not detected try the following:
Use a different USB port (for me the USB 3.0 port is always making problems)
Restart the device and the computer
Restart ADB
Also take a look here, which explains how to install drivers for the Nexus S.
I had a similar problem. I could not get my device to show up in my Eclipse devices window. When I typed adb devices, no devices were discovered. Fortunately, I discovered this website. It basically had me install a generic driver for my Motorola (Android 2). It had other drivers for Samsung and other manufacturers. After the install, my Motorola phone became visible with ADB.

Categories

Resources