"惊慌:无法打开"而试图在Linux Mint的运行Android模拟器 [英] "PANIC: Could not open" while trying to run Android emulator on Linux Mint
问题描述
我安装了Eclipse开普勒和Android的开发工具。一切工作正常,除了当我尝试运行我的Android code在模拟器我收到以下错误:
I installed Eclipse Kepler and the Android development tools. Everything is working fine, except for when I try to run my Android code in an emulator I get the following error:
Emulator] PANIC: Could not open: [name of Android virtual device]
我用Google搜索这个问题,但我还没有找到一个解决方案。它可能与Android的路径或者授权的事,但我不知道在那里我将其更改为。
I Googled the problem but I have not found a solution. It might have to do with the Android path or perhaps authorizations, but I do not know where I have to change them to.
我希望有人能帮助我。
推荐答案
这已经被问了几次已经,试试这个:
This has been asked a few times already, try this:
- 创建称为环境变量:ANDROID_SDK_HOME并将其设置为
C:\\用户\\管理员 - 打开Eclipse>窗口> preferences并单击运行/调试和字符串
替换 - 添加一个名为新变量:的user.home并将其设置为
C:\\用户\\管理员 - 创建一个AVD并运行它。
作为一种变通方法,您可以定义环境变量
ANDROID_SDK_HOME指向的目录包含您的.android
目录。模拟器和SDK管理器将它捡起来正常。
As a work-around, you can define the environment variable ANDROID_SDK_HOME to point to the directory containing your .android directory. The emulator and SDK Manager will pick it up properly.
原来的答复是:<一href=\"http://stackoverflow.com/questions/9009872/android-eclipse-panic-could-not-open/9010020#9010020\">Colin皮卡德
要更改在Ubuntu(如在注释请求)的 ANDROID_SDK_HOME
变量:
To change the ANDROID_SDK_HOME
variable in Ubuntu (as requested in the comment):
修改 .profile文件
像一个命令文件 gedit的〜/ .profile文件
并追加下面到底文件:
Edit your .profile
file with a command like gedit ~/.profile
and append the following to the end of the file:
出口ANDROID_SDK_HOME = /您/ Android的SDK /路径/此处
下面是你可以为Android工具修改一些变量列表。
Here's a list of some variables you can modify for Android Tools.
出口PATH = $ {PATH}:〜/ Android的SDK-linux_x86 /工具
出口PATH = $ {PATH}:〜/ Android的SDK-linux_x86 /平台的工具
出口ANDROID_SDK_HOME =〜/ Android的SDK-linux_x86 /工具
出口PATH = $ PATH:$ ANDROID_SDK_HOME
类似的问题
<一个href=\"http://stackoverflow.com/questions/6641498/android-emulator-cant-start-cause-of-wrong-folder\">Android模拟器无法启动,'错误的文件夹原因
我在模拟器有问题
<一个href=\"http://stackoverflow.com/questions/6936230/android-emulator-error2011-08-02-111401-emulator-panic-could-not-open-c\">android模拟器错误:[2011-08-02 11点14分01秒 - 模拟器]惊慌:无法打开C:\\用户\\你好\\ .android / AVD / myemu.ini
这篇关于&QUOT;惊慌:无法打开&QUOT;而试图在Linux Mint的运行Android模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!