简体   繁体   English

无法使用AVD Manager创建Android模拟器

[英]Cannot create Android Emulator with AVD Manager

I'm having problems with creating an Emulator from the AVD Manager. 从AVD Manager创建仿真器时遇到问题。 The error dialog says 错误对话框说

Failed to pare properties from C:\\User\\Giti.androud\\avd\\Emulator.a 无法从C:\\ User \\ Giti.androud \\ avd \\ Emulator.a删除属性

How can i fix this? 我怎样才能解决这个问题?

Are you using the Eclipse ADT plugin, or attempting to do this yourself? 您是在使用Eclipse ADT插件,还是尝试自己执行此操作? If using Eclipse, double check that you have the IDE pointing to the proper SDK installation directory, it is not done for you. 如果使用Eclipse,请再次检查IDE是否指向正确的SDK安装目录,否则您将无法完成此操作。 Also recall that when you download the android SDK, it comes with very few things, so the AVD manager must be used to download all of the necessary components from their respective repositories. 还记得当您下载android SDK时,它附带的东西很少,因此必须使用AVD管理器从其各自的存储库中下载所有必需的组件。 You can see this if you open the AVD manager and view the installed packages. 如果打开AVD管理器并查看已安装的软件包,则可以看到此信息。 Hope this helps. 希望这可以帮助。 Posting more information about your installation will be even more helpful as these steps are just the bare minimum to get up and running with Eclipse. 发布有关安装的更多信息将更加有用,因为这些步骤只是启动和运行Eclipse的最低要求。 Good Luck. 祝好运。

EDIT: You didn't mention whether you're using Eclipse or not, so I think it's important to note that it is strongly recommended that you use Eclipse with the ADT plugin, as android binaries are first built by the java compiler and then translated to dalvik binary. 编辑:您没有提到您是否在使用Eclipse,所以我认为必须注意,强烈建议您将Eclipse与ADT插件一起使用,因为android二进制文件首先由java编译器构建,然后进行翻译到dalvik binary。 This is just one of many concepts that you'd have to worry about without using Eclipse. 这只是不使用Eclipse时需要担心的众多概念之一。

ANOTHER EDIT: Based on the error message you posted, I'm assuming that it says "Failed to parse properties from C:\\User\\Giti.androud\\avd\\Emulator.a". 另一个编辑:根据您发布的错误消息,我假设它显示为“无法从C:\\ User \\ Giti.androud \\ avd \\ Emulator.a解析属性”。 There should obviously be a "\\" between Giti and .android. Giti和.android之间显然应该有一个“ \\”。 I'm not sure if this was your error or if this is exactly what you saw, in which case Eclipse is building the path string incorrectly. 我不确定这是您的错误还是您看到的正是这种错误,在这种情况下,Eclipse将错误地构建路径字符串。 How exactly are you building the AVD? 您究竟如何构建AVD? Are you doing anything special, eg setting the resolution, pixel density different? 您是否在做一些特别的事情,例如设置分辨率,像素密度不同? When you use the AVD manager, it will create two entries under C:\\Users\\Giti.android\\avd\\, one of which is a file named .ini and a directory called .avd which contains the system image and some other configuration settings for the virtual device. 使用AVD管理器时,它将在C:\\ Users \\ Giti.android \\ avd \\下创建两个条目,其中之一是名为.ini的文件和名为.avd的目录,其中包含系统映像和其他一些配置设置虚拟设备。 I would first recommend double checking that directory to ensure that these files are there and open them up in notepad to view the settings to ensure that nothing appears malformed, eg weird spaces or characters appearing in odd places. 我首先建议您仔细检查该目录,以确保存在这些文件,然后在记事本中打开它们以查看设置,以确保没有出现任何格式错误的内容,例如,怪异的空格或字符出现在奇怪的地方。 Most of the properties you'll see are straightforward enough that you can detect malformation easily. 您将看到的大多数属性都非常简单明了,可以轻松检测到格式错误。 Please also post the version of Eclipse that you are using. 还请发布您正在使用的Eclipse版本。 Are you new to it? 您是新手吗? Have you had it installed before and are just now trying to use the ADT plugin? 您以前是否安装过它,而现在正尝试使用ADT插件? Eclipse is very useful but can get pretty complicated when using different configurations. Eclipse非常有用,但是在使用不同的配置时会变得非常复杂。

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

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