Eclipse does not recognize my Android tablet
I'd like to start by saying that I've been using Eclipse w开发者_如何学Goith an Android (v2.2) phone with no problems.
Today I bought a Samsung Galaxy Tab 10.1 (Android 3.1) but Eclipse does not recognize it. Windows is aware of the device but Eclipse is not. I have installed the latest USB drivers, I can access the tablet as a storage device, the tablet is set to USB debugging mode and the tablet shows a "USB Debugging" notification when I plug it in. However it never shows up in the DDMS view in Eclipse and I cannot install or debug apps on it from Eclipse.
Any help is much appreciated.
Barry
Here is the way I solved this problem.
- Connect your tablet to PC
- PC will show Popup for new Hardware device found. On tab click on USB symbol (visible near time field.
- On click on this USB symbol it will show "Connected as Media device". Change that setting to "Camera"
- Now run adb devices command in command prompt, it will show tab there
- Download device driver.
- Make sure that you make it a developer device by checking the box in:
Settings --> Applications --> Development --> "USB Debugging"
===== UPDATED ANSWER:
For newer devices (4.0+), you will have to do it in two steps:
Settings --> About --> Software Information --> Build number
(you might have to click 'more' in menu option... somehow each to "Build number".) Tap 7 times the row, and it will change device into 'developer mode'.- Once you done that, go back and check the box in
Settings --> Developer Options --> USB debugging
First of all, its not eclipse who is not recognizing your device. Its ADB - android debug bridge. Usually you can check whether device is visible to ADB via console/terminal using adb devices
(adb
is an executable located at $ANDROID_SDK/platform-tools
).
Also, even if Windows sees your device as USB device, it doesn't mean it sees it as ADB compatible device. These are usually two different drivers. Make sure you've installed correct ADB drivers for your device.
Install Samsung Kies that will be enough to recognize your Android Tablet, it contains the necessary drivers to work with your Android Sambung tablet
Download Samsung Kies 2.0, it will install the drivers you need.
http://www.samsungapps.com/about/onPc.as
After the necessary restart my tablet installed the rest automatically (Win7) and the device is visible in Eclipse.
I had the same problem with the Samsung Galaxy Tab 10.1 (android 3.0). Windows 7 did recognize it as a generic storage device, but not as the Galaxy Tab.
If I remember correctly, there was an unknown device in the Windows Device Manager and pointing Windows to the
android_winusb.inf
to install a driver for it didn't work.
I solved the problem by editing the file <ANDROID_SDK_PATH>\extras\google\usb_driver\android_winusb.inf
according to a post I found somewhere on the Internet.
The file should contain the following:
;Galaxy Tab 10.1v
%SingleAdbInterface% = USB_Install, USB\VID_04E8&PID_6860&REV_9999&MI_01
%CompositeAdbInterface% = USB_Install, USB\VID_04E8&PID_6860&MI_01
%SingleAdbInterface% = USB_Install, USB\VID_04E8&PID_6601
%SingleAdbInterface% = USB_Install, USB\VID_0955&PID_7000
This should appear two times in the file; once under [Google.NTx86]
(for 32-bit) and once under [Google.NTamd64]
(for 64-bit).
Then reinstall the driver by pointing Windows to the edited .inf file.
I think you need to install Android 3.1 SDK and install the eclipse classic plugins as well. I have been using Samsung Galaxy with eclipse from quite some time now. Hope this helps.
I think u doesnot have android sdk 3.1 installed in your eclipse.
Goto Eclipse Window menu -> Android SDK and AVD Manager
Now goto Available Packages from where you can Download and install Android sdk platform for 3.1
1- Install the correct device driver from Samsung onto your workstation.
2- Pick the correct API level for your project, i.e. 3.1
3- Turn on "USB debugging" on your mobile device
Had the same problem, with my Samsung Galaxy Y Duos. It was perfectly working fine.. we could debug.
Stopped working/ not recognizable, after reinstalling the OS, Eclipse etc.
Here's a FIX that might work:
- Go to Android SDK Manager.
- Delete /Uninstall the USB drivers.
- Reconnect your mobile /tablet.
- The appropriate drivers will be installed automatically.
- Your Eclipse could identify your device... Your device is ready for debug.
SSS Solutions www.s3s.co.in
I did the following for a Galaxy Note 10.1:
- Install the Kies driver set available from Samsung as described above.
- to Set the Galaxy Note's USB Debugging on.
- Set the Galaxy Note to Camera Mode in the USB menu after plugging in the USB cable to PC.
- Run CMD window and manually run "adb usb" from the android-v4 directory
- CMD run "adb devices" and the Note showed up as:
"List of devices attached
4107001b9836affb device"
Now when I hit "run" in eclipse, I see "samsung-gt_n8013-4107001..." as a target device.
Hope this helps.
Enable USB debugging on your device.
On most devices running Android 3.2 or older, you can find the option under Settings > Applications > Development. On Android 4.0 and newer, it's in Settings > Developer options.
Note: On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number 7 times. Return to the previous screen to find Developer options.
精彩评论