简体   繁体   English

无法启动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

I have been looking around online for tutorials on how to get started with development of Qt & OpenCV applications for Android devices, in particular a Nexus 7 running Android 4.2.2. 我一直在网上寻找有关如何开始为Android设备(特别是运行Android 4.2.2的Nexus 7)开发Qt和OpenCV应用程序的教程。 By fooling around, I was able to create an Emulator and run on a certain Android Virtual Device (under Ubuntu Linux 12.10). 通过鬼混,我能够创建一个模拟器并在某个Android虚拟设备上运行(在Ubuntu Linux 12.10下)。

I am now trying to take on a more systematic and meticulous approach and better understand what I am doing. 我现在正在尝试采取一种更加系统和细致的方法,以更好地了解我在做什么。 I uninstalled the Qt/Necessitas SDK and reinstalled. 我卸载了Qt / Necessitas SDK,然后重新安装。 I am now having the following problems: 我现在遇到以下问题:

  • When trying to launch an Android Emulator using a Nexus 7 target from the Device Definitions' (ie, a known device configuration), I receive the following type of an error: 当尝试通过“设备定义”(即已知的设备配置)使用Nexus 7目标启动Android仿真器时,出现以下错误类型:

Starting emulator for AVD 'AVD_for_Nexus_7_by_Google; 为AVD'AVD_for_Nexus_7_by_Google启动模拟器; PANIC: Could not open: /home/baldur/.android/avd/AVD_for_Nexus_7_by_Google.ini PANIC:无法打开:/home/baldur/.android/avd/AVD_for_Nexus_7_by_Google.ini

  • When trying to launch an Android Emulator using my own custom definition of an Android Virtual Device, I receive the following error: 尝试使用我自己的Android虚拟设备自定义定义启动Android仿真器时,出现以下错误:

Emulator: ERROR: This AVD's configuration is missing a kernel file!! 模拟器:错误:此AVD的配置缺少内核文件!

  • With the device 'AVD_for_Nexus_7_by_Google' created, I create on 'Start' in the AVD Manager. 创建设备“ AVD_for_Nexus_7_by_Google”后,我在AVD管理器中的“开始”上创建。 Nothing happens, the Qt Creator turns gray-ish, and I just keep waiting. 什么都没发生,Qt Creator变成灰色,我一直在等待。 Necessitas seems to hang up. Necessitas似乎挂断了电话。

  • I can only run the AVD Virtual Device Manager if I run the Necessitas through sudo, after installation. 安装后,如果我通过sudo运行Necessitas,则只能运行AVD虚拟设备管理器。

Any pointers on how to fix these problems would be most welcomed. 任何有关如何解决这些问题的指示都将受到欢迎。

Best regards, Baldur 最好的问候,博德

PS I am including a few images that hopefully provide a reasonably good idea of what is going on. 附言:我将提供一些图像,希望它们对所发生的事情提供了一个合理的想法。

在此处输入图片说明在此处输入图片说明在此处输入图片说明在此处输入图片说明

Have you checked to make sure the path to the virtual device definition exists, has the right permissions along the entire folder path, and actually still contains the definition file? 您是否已检查以确保虚拟设备定义的路径存在,沿整个文件夹路径具有正确的权限,并且实际上仍包含定义文件?

/home/baldur/.android/avd/AVD_for_Nexus_7_by_Google.ini

Have you moved any folders around, such as the install locations of your IDE? 您是否移动过任何文件夹,例如IDE的安装位置?

I'm used to the windows Eclipse Android Development bundle. 我已经习惯了Windows Eclipse Android开发套件。 It has settings were you can change the path to the folder to your device definitions. 它具有设置,您可以将文件夹的路径更改为设备定义。 Is the same true for yours, and if so, Is the path set to your Nexus definition? 对您来说是否一样,如果是,路径是否设置为Nexus定义? NOTE: Not to the file that defines the INSTANCE of the AVD you create (you could make many), but to the file that tells your IDE the settings for creation OF an instance of a Nexus 7-like AVD ( analagous to the default class definition that tells your IDE what properties a Nexus 7 has). 注意:并不是定义您创建的AVD实例的文件(您可以创建许多文件),而是告诉您的IDE用于创建类似Nexus 7的AVD实例的设置的文件(类似于默认类)定义,告诉您的IDE Nexus 7具有哪些属性)。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM