Eclipse ADT错误:无法运行程序adb [英] Eclipse ADT Error: Cannot run program adb

查看:303
本文介绍了Eclipse ADT错误:无法运行程序adb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ubuntu上安装了适用于64位Linux的Android SDK(SDK Only)。然后我安装了Eclipse的ADT插件。当我重新启动Eclipse它要我打开SDK管理器并安装一些操作系统SDK,所以我安装了一些开发工具和最新的(我相信是4.2.2)Android发行版。然后我重新启动Eclipse,没有任何错误或控制台警告。



然后,我尝试打开几个Android视图(堆,LogCat等)并收到以下错误: / p>



这是什么,为什么我看到它?我可以做些什么来纠正它?感谢提前!



更新:在目录中运行 ls -l <​​/ code>问题产生:

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


解决方案

p>你的Ubuntu版本是什么?
在ubuntu 12.04之前,您必须安装ia32-libs

  sudo apt-get install ia32-libs 


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:

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

解决方案

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

sudo apt-get install ia32-libs

这篇关于Eclipse ADT错误:无法运行程序adb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆