无法启动'./qemu/linux-x86_64/qemu-system-i386':没有这样的文件或目录 [英] Could not launch './qemu/linux-x86_64/qemu-system-i386': No such file or directory

查看:873
本文介绍了无法启动'./qemu/linux-x86_64/qemu-system-i386':没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用25rc1的SDK工具时,从$ PATH启动仿真器时遇到问题

With 25rc1 of the SDK tools I am having a problem when starting the emulators from $PATH

➜  ~  which emulator
/home/ligi/bin/android-sdk/tools/emulator
➜  ~  emulator @M 
Could not launch './qemu/linux-x86_64/qemu-system-i386': No such file or directory
➜  ~  /home/ligi/bin/android-sdk/tools/emulator @M
console on port 5554, ADB on port 5555

有人知道解决方法吗?我可以写一个脚本来启动工具中的仿真器和CD,但是也许有更好的解决方案.

Anyone knows a workaround? I could write a script to start emulators and cd in tools before but perhaps there is a better solution.

推荐答案

我在android studio 2.3中遇到了这个问题,它使用了模拟器的新路径,因此请尝试以下操作:

I encounter this one in android studio 2.3 which use new path for the emulator so try the following:

请勿在 sdk-path/tools/目录中使用 emulator 可执行文件,而应使用在 sdk-path/emulator/中找到的可执行文件.

do not use emulator executable in the: sdk-path/tools/ directory but instead use the one found in the : sdk-path/emulator/

,还删除或重命名在 sdk-path/tools 目录中的模拟器.

and also remove or rename the emulator found in the sdk-path/tools directory.

并且由于android sdk附带了它自己的 libstdc ++.so.6 ,因此您需要执行以下操作以避免libGL错误:

and because android sdk shipped with it's own libstdc++.so.6 you need to do the following to avoid the libGL error:

cd $ANDROID_HOME/emulator/lib64/libstdc++
mv libstdc++.so.6 libstdc++.so.6.bak
ln -s /usr/lib64/libstdc++.so.6 $ANDROID_HOME/emulator/lib64/libstdc++  

这篇关于无法启动'./qemu/linux-x86_64/qemu-system-i386':没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆