Eclipse ADT Error: Cannot run program adb

2019-04-28 11:28发布

I'm on Ubuntu and just installed the Android SDK ("SDK Only") for 64-bit linux. I then installed the ADT plugin for Eclipse. 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. I then restarted Eclipse and got no errors or console warnings.

I then tried to open several Android views (Heap, LogCat, etc.) and got the following error:

enter image description here

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:

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:~$ 

2条回答
迷人小祖宗
2楼-- · 2019-04-28 12:05

If you're on ubuntu 13.10 (and possibly other versions >= 12.10), you may need to install

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

in stead. ia32-libs is no longer available on 13.10

查看更多
男人必须洒脱
3楼-- · 2019-04-28 12:18

What is your Ubuntu Version ? Before ubuntu 12.04, you must install ia32-libs

sudo apt-get install ia32-libs
查看更多
登录 后发表回答