码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2015-09-18 11:37:41      阅读:1021      评论:0      收藏:0      [点我收藏+]

标签:

技术分享技术分享

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

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

标签:

原文地址:http://www.cnblogs.com/pengmn/p/4818575.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!