Eclipse cannot find adb

I spent the last few hours moving my / home partition to my partition and then reinstalling Ubuntu 10.10. No problem. I reinstall Eclipse, and everything is as it should be: the ADT plugin is installed, my workspace is configured correctly, and it even remembers my last session. But when I try to run an Android project, I get the following:

[2011-05-28 21:28:13 - Game] The connection to adb is down, and a severe error has occured.
[2011-05-28 21:28:13 - Game] You must restart adb and Eclipse.
[2011-05-28 21:28:13 - Game] Please ensure that adb is correctly located at '/home/evan/android-sdk/platform-tools/adb' and can be executed.

adb is actually located in / home / evan / android -sdk / platform-tools and is executable. And it's not just Eclipse: I can connect to platform tools and run the adb ( ./adb logcat) command , and I get it bash: ./adb: No such file or directory.

I reinstalled the platform SDK tools, this did not help.

Tracing:

execve("/home/evan/android-sdk/platform-tools/adb", ["/home/evan/android-sdk/platform-"...], [/* 41    vars */]) = -1 ENOENT (No such file or directory)
dup(2)                                  = 3
fcntl(3, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7c4c7b3000
lseek(3, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
close(3)                                = 0
munmap(0x7f7c4c7b3000, 4096)            = 0
exit_group(1)                           = ?

and the entire platform tools catalog:

-rwxrwxrwx 1 evan evan  3747857 2011-05-28 21:27 aapt
-rwxr-xrwx 1 evan evan   363197 2011-05-28 21:27 adb
-rwxrwxrwx 1 evan evan   906338 2011-05-28 21:27 aidl
-rwxrwxrwx 1 evan evan   328445 2011-05-28 21:27 dexdump
-rwxrwxrwx 1 evan evan     2603 2011-05-28 21:27 dx
drwxr-xr-x 2 evan evan     4096 2011-05-28 21:27 lib
-rwxrwxrwx 1 evan evan 14929076 2011-05-28 21:27 llvm-rs-cc
-rw-r--r-- 1 evan evan   332494 2011-05-28 21:27 NOTICE.txt
-rw-r--r-- 1 evan evan      291 2011-05-28 21:27 source.properties
+3
source share
4

, 32- , amd64. , ia32-libs.

+5

Android.

+1

Run

$ strace /home/evan/android-sdk/platform-tools/adb

, adb. , ?

adb, - , , , , . Run

$ mount -v | grep home

, "noexec" , , . /etc/fstab, .

+1

In my case, I just reinstalled the Android SDK (I downloaded the new version here: http://developer.android.com/sdk/index.html ), and then after restarting Eclipse, everything works fine again.

0
source

All Articles