我花了最后几个小时将我/ 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到平台工具并运行adb命令(./ adb logcat),我得到bash:./ adb:没有这样的文件或目录.
我重新安装了SDK平台工具,它没有帮助.
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) = 3fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEfile)fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0mmap(NulL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7c4c7b3000lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)write(3, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory) = 40close(3) = 0munmap(0x7f7c4c7b3000, 4096) = 0exit_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 dxdrwxr-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
解决方法:
问题是可执行文件是为32位架构而制作的,我运行的是amd64.轻松解决,只需安装ia32-libs包.
总结以上是内存溢出为你收集整理的android – Eclipse无法找到adb全部内容,希望文章能够帮你解决android – Eclipse无法找到adb所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)