Eclipse ADT 意外异常“无法运行程序”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20777316/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:25:47  来源:igfitidea点击:

Eclipse ADT Unexpected exception 'Cannot run program'

androidlinuxeclipseadtubuntu-13.10

提问by mishelashala

I have installed ADT Bundle on my laptop. I have ubuntu 13.10 but when I open the ADT I see this message:

我已经在我的笔记本电脑上安装了 ADT Bundle。我有 ubuntu 13.10,但是当我打开 ADT 时,我看到以下消息:

Unexpected exception 'Cannot run program "/home/.../Descargas/adt-bundle-linux-x86_64 20131030/sdk/platform-tools/adb": 
error=2, No existe el archivo o el directorio' while attempting to get adb version from '/home/.../Descargas/adt-bundle-linux-x86_64-20131030/sdk/platform-tools/adb'

[2013-12-25 16:20:14 - adb] Unexpected exception 'Cannot run program "/home/.../Descargas/adt-bundle-linux-x86_64-20131030/sdk/platform-tools/adb": 
error=2, No existe el archivo o el directorio' while attempting to get adb version from '/home/.../Descargas/adt-bundle-linux-x86_64-20131030/sdk/platform-tools/adb'

It is my first time installing and developing on android, so, I do not know what to do. Can someone help me?

这是我第一次在android上安装和开发,所以,我不知道该怎么做。有人能帮我吗?

采纳答案by Abdo Kamal

I faced the same problem but after re-extracting the ADT file,this message disappeared.

我遇到了同样的问题,但在重新提取 ADT 文件后,此消息消失了。

Working on Ubunto 13.10 , The ADT file name (adt-bundle-linux-x86_64-20131030.zip)

在 Ubunto 13.10 上工作,ADT 文件名 (adt-bundle-linux-x86_64-20131030.zip)

回答by Ivo van der Wijk

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

如果您使用的是 ubuntu 13.10(可能还有其他版本 >= 12.10),您可能需要安装

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

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

反而。ia32-libs 在 13.10 不再可用

回答by DARDAR SAAD

I think you have to install: IA32 library

我认为您必须安装:IA32 库

You can test this command: apt-get install ia32-libs

你可以测试这个命令: apt-get install ia32-libs

回答by rahmad

Its documented in Android's Setting Up an Existing IDEpage, click on the Troubleshooting Ubuntulink. For Ubuntu 13.10 (Saucy Salamander) and newer you need to add these packages:

它记录在 Android 的设置现有 IDE页面中,单击Ubuntu 故障排除链接。对于 Ubuntu 13.10 (Saucy Salamander) 及更新版本,您需要添加以下软件包:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386

回答by anand mishra

I am using Ubuntu 14.04 LTS 64-bit and the following code works for me:

我使用的是 Ubuntu 14.04 LTS 64 位,以下代码适用于我:

sudo apt-get install lib32z1 lib32z1-dev