[英]android sdk on ubuntu Starting emulator for AVD PANIC: Could not open:
I found tons of answers to this question for Windows, but my problem is on linux (ubuntu). 我在Windows上找到了这个问题的大量答案,但我的问题是在linux(ubuntu)上。 I just downloaded the adt bundle, launched eclipse and tried to start an emulator from the Virtual Device Manager, but I am getting the message
我刚刚下载了adt包,启动了eclipse并试图从虚拟设备管理器启动一个模拟器,但是我收到了消息
Starting emulator for AVD 'AS'
PANIC: Could not open: AS
I tried to run both as root or not root without success. 我尝试以root用户身份运行,而不是root用户,但没有成功。
Thanks 谢谢
不要使用./emulator -avd {AVD NAME}作为超级用户...尝试使用它而不用root它对我有用..更多细节请看这个链接
I just had the same problem. 我刚遇到同样的问题。 Turns out I didn't have proper permissions on my
Eclipse ADT Bundle
. 事实证明我对
Eclipse ADT Bundle
没有适当的权限。
Try: 尝试:
sudo chown -R username adt-bundle-linux-x86_64****
Make sure you have permissions on your workspace too... 确保您对工作区也有权限......
sudo chown -R username Workspace
Then you should be able to launch Eclipse as non-root and run the AVD just fine. 然后你应该能够以非root身份启动Eclipse并运行AVD就好了。
If you are running a 64-bit distribution on your development machine, you need to install the ia32-libs package using apt-get:: 如果您在开发计算机上运行64位发行版,则需要使用apt-get ::来安装ia32-libs软件包。
Open terminal and type the following 打开终端并键入以下内容
sudo apt-get install ia32-libs
For more information check the link below 有关更多信息,请查看以下链接
http://developer.android.com/sdk/installing/index.html http://developer.android.com/sdk/installing/index.html
I guess android sdk is 32 bit so you need ia32-libs if you are running on 64 bit machine 我猜android sdk是32位,所以如果你在64位机器上运行你需要ia32-libs
Edit: 编辑:
You can try this 你可以试试这个
open terminal 开放式终端
and type 并输入
sudo chmod -R 777 'YOURPATH of sdk folder(Just Drag and Drop your Android sdk folder here)'
This will give read write and execute permission 这将提供读写和执行权限
Ubuntu Android Emulator Problem [Solved] Ubuntu Android模拟器问题[已解决]
The issue with android emulator is not the hardware drivers. Android模拟器的问题不是硬件驱动程序。 It is OpenGL drivers.
它是OpenGL驱动程序。 To solve it please go through these steps:
要解决它,请完成以下步骤:
Open synaptic package manager (If not please install it from Ubuntu software center) 打开synaptic包管理器(如果没有请从Ubuntu软件中心安装)
In Quick filter type “opengl” and press search. 在快速过滤器中键入“opengl”并按搜索。
Select the following packages: libgles1-mesa-dev libgles2-mesa-dev libgles1-mesa libgles2-mesa libqt4-opengl [Update/Upgrade] glmark2 glmark2-es2 libgles1-mesa-dbg libgles2-mesa-dbg freeglut3 libhugs-opengl-bundled 选择以下软件包:libgles1-mesa-dev libgles2-mesa-dev libgles1-mesa libgles2-mesa libqt4-opengl [更新/升级] glmark2 glmark2-es2 libgles1-mesa-dbg libgles2-mesa-dbg freeglut3 libhugs-opengl-bundled
Selection procedure Right click on the package and select as 'Mark for Installation”. 选择程序右键单击包并选择“标记为安装”。
And click 'Apply'. 然后单击“应用”。
Enjoy the ANDROID PROGRAMMING WITH THE EMULATOR. 享受与EMULATOR的ANDROID编程。
我发现chown ~/.android
以及chowning ADK目录对我有用(ubuntu 12)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.