我花了几个小时将我的/home移动到自己的分区,然后重新安装Ubuntu 10.10。没有遇到任何问题。我重新安装Eclipse,一切都正常:ADT插件已安装,我的工作区设置正确,它甚至记得我的上次会话。但是当我尝试运行Android项目时,我得到了这个错误:
[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位于/home/evan/android-sdk/platform-tools,是可执行文件。并不只是Eclipse:我可以cd到platform-tools并运行adb命令(./adb logcat
),但是我会得到bash: ./adb: No such file or directory
的错误提示。
我重新安装了SDK platform-tools,但没有帮助。
strace:
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) = ?
以及整个 platform-tools 目录:
-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