سؤال

I'm having some trouble with the USB debugging for Android via Eclipse: All my devices are recognized by the DDMS (I can see everyone of them in the logcat) but some of them don't work with the USB debugging.

I can't start my application on the device via Eclipse because it says: "No active compatible AVD's or devices found. Relaunch this configuration after connecting a device or starting an AVD.".

Obviously I've got the USB Debug flag checked on the devices...

I'm working with:

  • Eclipse Version: 4.2.1 - Build id: M20120914-1800
  • Mac OS X Lion 10.7.5 (11G56)

Nexus S, Galaxy S3 and a bunch of other devices work; Galaxy S2, Galaxy Note and some other won't...

Any ideas on how to solve the problem?

EDIT:

Mistery solved... I'm a total idiot... in my manifest file I have

<uses-sdk
   android:minSdkVersion="13"
   android:targetSdkVersion="17" />

And those devices I listed above have previous Android versions... it all works great if I set correctly the minSdkVersion value! So sorry for the time loss!

هل كانت مفيدة؟

المحلول

  • look for the USB driver for your device
  • install it

Then, In Command Prompt, run adb devices. Check if your device is listed...

You can find Samsung universal USB drivers here

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top