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

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?

shareimprove this question
 

5 Answers

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
 
1  
This is weird, but worked for me too! Thank you =) –  user3153542 Aug 13 '14 at 19:06

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
 
    
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

I think you have to install: IA32 library

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

shareimprove this answer
 

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
 

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
 

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

posted @ 2015-09-18 10:52  a318013800  阅读(1840)  评论(0编辑  收藏  举报