簡體   English   中英

無法運行程序“ xx / sdk // tools / emulator”:java.io.IOException:錯誤= 2,沒有這樣的文件或目錄

[英]Cannot run program “ xx/sdk//tools/emulator”: java.io.IOException: error=2, No such file or directory

我已經在Ubuntu 12.10上成功安裝了android SDK和android eclipse插件。 我在eclipse中創建了AVD,現在它沒有運行。 這是我在運行AVD時收到的輸出錯誤:提示:

Starting emulator for AVD 'avd'
Failed to start emulator: Cannot run program "/home/sancai/android/adt-bundle-linux-x86_64-20130522/sdk//tools/emulator": java.io.IOException: error=2, No such file or directory

我通過google找到信息,每個人都說這是因為我的系統版本是64,而adt僅支持32,要安裝:sudo apt-get install ia32-libs,當我安裝32位庫時,會出現其他問題,例如庫文件與其他庫的關聯,但是沒有其他庫文件是完整的,它提示:

sancai@ubuntu:~$ sudo apt-get install ia32-libs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ia32-libs : Depends: ia32-libs-multiarch but it is not installable
E: Unable to correct problems, you have held broken packages.

sancai@ubuntu:~$ sudo apt-get install ia32-libs-multiarch
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ia32-libs-multiarch is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ia32-libs-multiarch' has no installation candidate

這應該有助於:

轉到xx / sdk / tools並運行:

mv emulator emulator.bak
ln -s emulator64-arm emulator

無需安裝任何ia32庫。

這是答案http://astroelec.blogspot.com/

(使用Debian)由於bian轉向了多體系結構支持,因此無法再安裝ia32-libs。 解。 使用Multiarch Multiarch支持使從i386發行版安裝庫變得容易...

sudo dpkg --add-architecture i386
sudo aptitude update
sudo aptitude install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386

現在啟動eclipse,一切都應該正常工作。

在我的配置中,我已將虛擬設備設置為使用Intel Atom系統映像。 伊利諾伊大學的勞倫斯·安格雷夫(Lawrence Angrave) 在他的Coursera androidapps101課程中表示,它的運行速度將比ARM映像快。 所以這對我有用:

mv emulator emulator_bak
ln -s emulator64-x86 emulator

您不再需要安裝軟件包!

在目錄工具中,有許多類型的emulator ,而我的計算機可以使用emulator64-arm 我的系統是Linux Mint 16 amd64 祝好運!

./emulator64-arm @yxphone -sdcard yxsd -scale 0.8

很簡單,這是我的解決方案。 復制並粘貼,這行在您的終端。

apt-get install libncurses5:i386 \
                   libstdc++6:i386 \
                   zlib1g:i386

祝好運!!

這可能有幫助

sudo aptitude install ia32-libs lib32ncurses5 lib32stdc++6

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM