I have the Pulse U8220 phone, on which I'm doing Android development. Recently I started having problems with Eclipse on Ubuntu, because Eclipse refuses to run/debug programs on my device (and I'm not sure why). This used to work for me in the past.
I have already done the most important steps like:
- creating
/etc/udev/rules.d/50-android.rulesand includingSYSFS{idVendor}=="12d1"for a Huawei device - running
sudo adb kill-server && sudo asb start-server
But neither of these resolve the issue in Eclipse. Note that adb itself works correctly.
Whenever I try to run my application in Eclipse on a device (which Eclipse shows as 'Online'), the console lists the following:
[2011-03-15 15:45:45 - myapp] Android Launch! [2011-03-15 15:45:45 - myapp] adb is running normally. [2011-03-15 15:45:45 - myapp] Performing my.app.Activity activity launch [2011-03-15 15:45:45 - myapp] Automatic Target Mode: Unable to detect device compatibility. Please select a target device. [2011-03-15 15:45:47 - myapp] WARNING: Unknown device API version! [2011-03-15 15:45:47 - myapp] Uploading myapp.apk onto device '????????????' [2011-03-15 15:45:47 - myapp] Failed to install myapp.apk on device '????????????': adb rejected install command with: device not found [2011-03-15 15:45:47 - myapp] com.android.ddmlib.AdbCommandRejectedException: device not found [2011-03-15 15:45:47 - myapp] Launch canceled! However, I am still able to install the application using adb from the console, as follows:
$ ant install ... [echo] Installing /projects/myapp/bin/myapp-debug.apk onto default emulator or device... [exec] 154 KB/s (88178 bytes in 0.558s) [exec] pkg: /data/local/tmp/myapp-debug.apk [exec] Success It works normally on Windows on a desktop machine, where I had to install the USB drivers, but I work mostly on my Ubuntu laptop. I have a feeling that this may be be related to the fact, that my device has a strange 'serial' number - '????????????'.
Does anybody have this problem? Did anybody manage to solve it? Is there a possibility to debug an Android application, that was not started in Eclipse?
Solved: Thanks to PaulB for pointing me to the Modaco forum, where I found a link to a patched adb which correctly handles devices without a serial number. No other modifications and commands were necessary. Now, I can run and debug applications in Eclipse on Ubuntu too.