您的位置:首页 > 其它

Unexpected exception 'Cannot run program ... error=2, No such file or directory' ... adb'

2015-09-18 10:52 531 查看

Eclipse ADT Unexpected exception 'Cannot run program'






up vote 8 down vote favorite
4

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

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
linux eclipse adt ubuntu-13.10
shareimprove this question
edited Dec 25 '13 at 23:03



GareginSargsyan

1,008218

asked Dec 25 '13 at 22:34



MichelAyala

76129

add a comment


5 Answers

active
oldest
votes

up vote
4
down vote

accepted

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

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

shareimprove this answer

answered Feb 25 '14 at 14:56



Abdo Kamal

614

1
This is weird, but worked for me too! Thank you =)

user3153542
Aug 13 '14 at 19:06

add a comment






up vote
31
down vote

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

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

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

shareimprove this answer
edited Feb 22 '14 at 8:21

answered Feb 19 '14 at 10:06



Ivo van der Wijk

8,64312440

This worked for me on 13.10 when I prefixed the command with 'sudo'. thanks

Stevko
Feb 21 '14 at 20:49

apt-get always has to be done as root, of course :)

Ivo van der Wijk
Feb 22 '14 at 8:20

1
this one works without any problem. thanks

Vishnudev K
May 5 '14 at 20:45

I am on 14.04 and worked well. Thanks :)

Kunal
Jun 26 '14 at 8:22

1
Thank you - this worked for me just now

mixedmath
Sep 1 '14 at 5:56

show 2 more comments

up vote
2
down vote

I think you have to install: IA32 library

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


shareimprove this answer

answered Dec 25 '13 at 23:00



DARDAR SAAD

12318

add a comment

up vote
1
down vote

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

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


shareimprove this answer
answered May 6 '14 at 3:03



rahmad

436

add a comment

up vote
0
down vote

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

sudo apt-get install lib32z1 lib32z1-dev

shareimprove this answer

answered Mar 17 at 6:17



anand mishra

11

add a comment

http://stackoverflow.com/questions/20777316/eclipse-adt-unexpected-exception-cannot-run-program

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: