Eclipse is not picking up my Android devices target API - android

I realize this has been asked before but none have been able to help me, I want to use my Nexus 7 with my pre-existing Android project but when I attempt to use it Eclipse doesn't pick up it's target.
-I've updated my related drivers.
-The Android composite ADB interface is up to date.
-It works on the device I was previously using (HTC Desire S).
UPDATE
It does not pick up the target when Iconnect it as PTP and MTP + in both it registers the state as offline.

the most common reasons for the device not showing up as a target.
1) "Eclipse needs to be restarted".
2) the driver for the device is not installed properly.
3) the target api/version code is not compatible
try
1) to plug the phone into a different usb port. (that sometimes refreshes the driver)
2) create a empty project that is compatible with your android version and see if it picks
up your device (if it does that means you have to update the targetSdk for your project).
if all fails restart eclipse a few times and keep your fingers crossed.

Follow this tutorial.
If you like playing around with your Android device (e.g. rooting or installing custom ROMs), then you probably are familiar with Android’s ‘USB debugging mode’. However, USB debugging mode is really intended only for developers and people who don’t know what they are doing may accidentally enable it and put their device at risk. This is why starting in Android 4.2 Jelly Bean, Google has hidden the ability to enable USB debugging mode. If you want to know how to enable USB debugging mode in Android 4.2 and higher, this guide will show you exactly how to do that.
The following steps work on all Android devices running Android 4.2 and higher. That includes Nexus 4, Nexus 10, Nexus 7, Galaxy Nexus, and any other device.
How to find and turn on USB debugging mode in Android 4.2 and higher
To see the option for USB debugging mode in Android 4.2 or higher, do the following:
Open up your device’s “Settings”. This can be done by pressing the Menu button while on your home screen and tapping “System settings”
Now scroll to the bottom and tap “About phone” or “About tablet”.
At the “About” screen, scroll to the bottom and tap on “Build number” seven times.
Make sure you tap seven times. If you see a “You are now a developer!” message pop up, then you know you have done it correctly.
Done! By tapping on “Build number” seven times, you have unlocked USB debugging mode on Android 4.2 and higher. You can now enable/disable it whenever you desire by going to “Settings” -> “Developer Options” -> “Debugging” ->” USB debugging”.
Conclusion
That was easy. The best part is you only have to do the tap-build-number-seven-times once. After you do it once, USB debugging has been unlocked and you can enable or disable at your leisure.
If you alrady done,
Check if this solution helps Not seeing Nexus7 in Eclipse's Android Devices

Related

adb wont detect my Samsung Galaxy note 5. I've tried everything

I recently broke the screen of my locked phone and would like to unlock and recover data by using adb, but it's not detecting my broken Samsung Note 5 or even my replacement Samsung Edge 7.
I've tried:
kill-server/start-server
downloading newest usb drivers
enabling developer mode on both phones (I already had developer mode enabled before I broke my Note 5).
using original usb cord given inside the box.
I don't know what else to do.
The problem might be with your computer.Try to use a different computer with adb installed to see what happens.If the problem persists,uninstall your Android SDK and re-install it.
On my Note 5, adb needs the phone's USB connection set to 'USB Data' not just 'charge' (default) before it will recognize it. Once it sees that permission, abd devices will show the phone as 'unauthorized', I then must allow access for debugging on the phone before it will allow access by tapping 'OK' on the popup dialog on the phone.
You could try booting into recovery mode but I don't think Samsung Galaxy allows access vie adb when in recovery. It may depend on the age of the phone.
So it sounds like the phone may be in 'charge only' mode when USB is connected. Your best bet may be repairing the phone.
I am a user of both android studio and Samsung Galaxy Note 5. I solved my issues just the same as you by generating APK files and transfer it to my note 5.
I just found that the reason is unknown resource settings which means my phone only trust google play and block other app. Have a good day.

Android Studio no longer recognizes LG G Stylo

I need to know how to make Windows 7 forget it ever connected to my LG G Stylo phone. I have three devices that I use in Android Studio development. For some reason, this one is no longer being detected by the ADB. Something has happened to make it no longer show up, because it did a couple of weeks ago.
AS's ADB will detect my other two devices, and this device shows up in the in the ADB on another computer. I have tediously gone through the registry and removed everything referencing the Stylo, but it still will not show up in AS's ADB.
Thanks for the help!
John
To start, I have just purchased the LG Stylo 3 plus and ran right into this situation. TO repeat the basics you need
With Android Studio shut down...
Turn on Developer options (tap 7 times on build number in settings
(Settings>System>About Phone>Build Number
Turn on USB Debugging in Developer Options
(optionally) check on the type of USB connection, MTP or PTP should
work
(Optionally) Because I did it, also do a revoke USB tap.
Here was the key for me. I needed to install the LG USB Windows Drivers for my Windows 7 (I'll try 10 tonight and update). Go to this page
LG Drivers and firmware
and either type in model number or browse to find device. LG has a nice interface to install the Windows Drivers. I recommend the Support tool to verify the device as the up to date drivers as well. Start Android Studio and to test I just started the app in debug mode and went through the process of setting up ADB for using the new;y connected device.
Developer options" has to be ON in order to make AS see the device
If even though device manager you can't saw the device, Windows couldn't find drivers.Maybe the drivers are hidden on the device otherwise download it and install it.
If that doesn't work:
Shut down
Hit F8 (or whatever gets to startup options screen on your computer)
Disable Driver Signature Enforcement.
Run driver

Android Studio 2.1.1: "no usb devices or running emulators detected"

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

Enable Android Usb Testing on Hp Phone

I have a hp slate 6 voicetab running android 4.4 and I would like to use it to test an android app that I am developing. The Android phone is not showing up on the list of devices next to the emulator.
Can someone please help me.
P.S I am using android studio and running windows 8.1
Make sure you have USB Debugging Mode and Allow Mock Locations turned-on on your android device. To do that go to settings on the device and scroll down to developer options, then enable usb debugging. Also enable Allow mock locations.
Note if Developer options is not visible, enable it by going to About Phone and tap on the build number repeatedly 5 times.
I have managed to get it working. I used a software called ADBDriver installer, and I disabled the windows certificate check, then enabled developer options on the phone and it was able to show. Thanks for all your help

New Nexus 7 not appearing on Eclipse/AVD Manager

I am having trouble connecting a Nexus 7 to Eclipse... and really lost about what to do to get it running. OS of my Computer is Windows 7 64 Bit.
Another Nexus 7, exactly same android-version, but with less memory, was successfully connecting previously; I have no idea if that could be the cause of the problem? Somehow, none of the million topics about this solve my troubles.
What I already did:
Nexus 7 is in Developer Mode
USB Debugging is Active
I am connecting as PTP-device
It does show up when I run adb devices on commandline. It sucessfully DISappears from adb devices when I unplug it, kill the adb server, and reboot
Despite all this, if refuses to appear as a device in AVD Manager!
Strangely, an emulator I deleted weeks ago still appears in adb devices, but at least it is offline...
Any ideas about what I missed?
Google hasn't taken the "developer" out of its Nexus line, and it's not going to anytime soon. But the settings have been hidden from casual view in the settings menu. Here's how to get them back:
Go to the settings menu, and scroll down to "About phone." Tap it.
Scroll down to the bottom again, where you see "Build number." (Your build number may vary from ours here.)
Tap it seven (7) times. After the third tap, you'll see a playful dialog that says you're four taps away from being a developer. (If only it were that simple, eh?) Keep on tapping, and poof, you've got the developer settings back.
Here are the links
Restore the Developer Options menu in Android 4.2
How to enable developer settings on Android 4.2
Update Drivers for your device
http://developer.android.com/tools/extras/oem-usb.html
Open Windows Device Manager (Right click my computer and select manage)
Uninstall the Android Composite ADB Interface (delete driver) so the Nexus 7 will be displayed as Other Devices when you re-connect it. Select it and choose to update driver software with a driver you select yourself like android/extra/google/usb_driver or a downloaded driver from ASUS http://support.asus.com/download/ModelList.aspx?SLanguage=en&keyword=nexus%207&type=1
worked for me...

Categories

Resources