简体   繁体   English

Eclipse ADT错误:无法运行程序adb

[英]Eclipse ADT Error: Cannot run program adb

I'm on Ubuntu and just installed the Android SDK ("SDK Only") for 64-bit linux. 我在Ubuntu上,刚为64位linux安装了Android SDK(“SDK Only”)。 I then installed the ADT plugin for Eclipse. 然后我为Eclipse安装了ADT插件。 When I restarted Eclipse it asked me to open the SDK Manager and install some OS SDKs, so I installed some Developer tools and the most recent (I believe it was 4.2.2) Android distro. 当我重新启动Eclipse时,它要求我打开SDK Manager并安装一些操作系统SDK,因此我安装了一些开发人员工具和最近的(我相信它是4.2.2)Android发行版。 I then restarted Eclipse and got no errors or console warnings. 然后我重新启动Eclipse并且没有错误或控制台警告。

I then tried to open several Android views (Heap, LogCat, etc.) and got the following error: 然后我尝试打开几个Android视图(Heap,LogCat等)并得到以下错误:

在此输入图像描述

What is this and why am I seeing it? 这是什么,为什么我看到了它? What can I do to correct it? 我该怎么做才能纠正它? Thanks in advance! 提前致谢!

Update: running an ls -l on the directory in question produces: 更新:在相关目录上运行ls -l会产生:

myUser@myMachine:~$ ls -l ~/sandbox/dsi/workbench/android-sdk/21.1/android-sdk-linux/platform-tools/
total 27960
-rwxrwxr-x 1 myUser myUser  1122758 Apr 11 10:29 aapt
-rwxrwxr-x 1 myUser myUser  1226659 Apr 11 10:29 adb
-rwxrwxr-x 1 myUser myUser   269818 Apr 11 10:29 aidl
drwxrwxr-x 2 myUser myUser     4096 Apr 11 10:29 api
-rwxrwxr-x 1 myUser myUser   444481 Apr 11 10:29 dexdump
-rwxrwxr-x 1 myUser myUser     2603 Apr 11 10:29 dx
-rwxrwxr-x 1 myUser myUser   176550 Apr 11 10:29 fastboot
drwxrwxr-x 2 myUser myUser     4096 Apr 11 10:29 lib
-rwxrwxr-x 1 myUser myUser 24867619 Apr 11 10:29 llvm-rs-cc
-rw-rw-r-- 1 myUser myUser   467531 Apr 11 10:29 NOTICE.txt
drwxrwxr-x 4 myUser myUser     4096 Apr 11 10:29 renderscript
-rw-rw-r-- 1 myUser myUser    16648 Apr 11 10:29 source.properties
myUser@myMachine:~$ 

If you're on ubuntu 13.10 (and possibly other versions >= 12.10), you may need to install 如果您使用的是ubuntu 13.10(可能还有其他版本> = 12.10),则可能需要安装

apt-get install lib32ncurses5 lib32stdc++6 zlib1g:i386 libc6-i386

in stead. 而不是。 ia32-libs is no longer available on 13.10 13.10上不再提供ia32-libs

What is your Ubuntu Version ? 你的Ubuntu版本是什么? Before ubuntu 12.04, you must install ia32-libs 在ubuntu 12.04之前,您必须安装ia32-libs

sudo apt-get install ia32-libs

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM