简体   繁体   English

ubuntu上的android sdk为AVD启动模拟器PANIC:无法打开:

[英]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 这将提供读写和执行权限

you could try piecemeal install 你可以试试零碎的安装

eclipse download - no bundle eclipse下载 - 没有捆绑

sdk download install sdk下载安装

adt ADT

I use ubuntu 12.04 and eclipse 4.3 and all is OK. 我使用ubuntu 12.04和eclipse 4.3,一切都还可以。

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: 要解决它,请完成以下步骤:

  1. Open synaptic package manager (If not please install it from Ubuntu software center) 打开synaptic包管理器(如果没有请从Ubuntu软件中心安装)

  2. In Quick filter type “opengl” and press search. 在快速过滤器中键入“opengl”并按搜索。

  3. 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

  4. Selection procedure Right click on the package and select as 'Mark for Installation”. 选择程序右键单击包并选择“标记为安装”。

  5. And click 'Apply'. 然后单击“应用”。

  6. Enjoy the ANDROID PROGRAMMING WITH THE EMULATOR. 享受与EMULATOR的ANDROID编程。

我发现chown ~/.android以及chowning ADK目录​​对我有用(ubuntu 12)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为AVD启动模拟器avd PANIC:无法打开:avd - Ubuntu 13.10 - Starting emulator for AVD avd PANIC: Could not open: avd - Ubuntu 13.10 “为AVD启动模拟器”然后恐慌:无法打开...“ - “Starting emulator for AVD” then Panic: could not open…" 无法启动AVD模拟器:PANIC:无法打开:/home/baldur/.android/avd/AVD_for_Nexus_7_by_Google.ini - Unable to launch an AVD Emulator: PANIC: Could not open: /home/baldur/.android/avd/AVD_for_Nexus_7_by_Google.ini Android Studio - 恐慌:无法打开AVD - Android Studio - Panic: Could not open AVD Eclipse Android正在运行AVD-紧急情况:无法打开 - eclipse android running AVD - panic: could not open 启动AVD时Ubuntu 14.04 Android Studio Panic错误 - Ubuntu 14.04 Android Studio Panic error when starting avd android模拟器错误:[2011-08-02 11:14:01 - 模拟器] PANIC:无法打开:C:\\ Users \\ hallo \\ .android / avd / myemu.ini - android emulator error:[2011-08-02 11:14:01 - Emulator] PANIC: Could not open: C:\Users\hallo\.android/avd/myemu.ini AVD或SDK(Android模拟器) - AVD or SDK (Android Emulator,) AVD-PANIC:无法打开...-路径问题 - AVD - PANIC: Could not open… - not a path issue 模拟器:PANIC:损坏的 AVD 系统路径。 检查您的 ANDROID_SDK_ROOT 值 [F:\android]? - Emulator: PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value [F:\android]?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM