Unexpected exception ‘Cannot run program … error=2, No such file or directory’ … adb’

Unexpected exception 'Cannot run program ... error=2, No such file or directory' ... adb'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
Unexpected exception 'Cannot run program ... error=2, No such file or directory' ... adb'Unexpected exception 'Cannot run program ... error=2, No such file or directory' ... adb'

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

原文链接: https://www.cnblogs.com/pengmn/p/4818575.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍

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

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/222027

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年2月13日 上午11:32
下一篇 2023年2月13日 上午11:33

相关推荐