简体   繁体   English

无法在Windows 7的android studio上创建虚拟设备

[英]cannot create virtual device on android studio on windows 7

When I create a new virtual device on android studio it says : event log is 当我在android studio上创建新的虚拟设备时,它说:事件日志是

IOException : makeRelative: incompatible drive letters
running error PANIC: Could not open AVD config file: C:\Users\3mr\.android\avd\Nexus_5_API_21.avd\config.ini

What is the cause of this? 这是什么原因?

This is bug https://code.google.com/p/android/issues/detail?id=81023 and seems to be caused by having Android Studio installed on a different drive letter than the SDK. 这是https://code.google.com/p/android/issues/detail?id=81023的错误,似乎是由于将Android Studio安装在与SDK不同的驱动器号上引起的。 A workaround until the bug is fixed would be to install them on the same drive letter. 修复该错误之前,一种解决方法是将它们安装在同一驱动器号上。

In the comments you say that both Android Studio and the SDK are installed on D:, so I think the problem in your case is that your home directory is on C:. 在评论中,您说Android Studio和SDK都安装在D:上,所以我认为您的问题是主目录位于C:上。 As a workaround until the bug is fixed, you can try installing everything on C:. 作为解决此问题之前的解决方法,您可以尝试在C:上安装所有组件。

I just want to add a comment to Scott's answer, but I don't have the reputation for it so I'll pretend this is an answer. 我只想在Scott的答案中添加评论,但我没有这个声誉,所以我假装这是一个答案。

According to the issue linked to in Scott's answer, Google has fixed this in the code. 根据Scott答案中与之相关的问题,Google已在代码中修复了此问题。 I don't know when it will show up in an AS release, but I'll bet it shows up in the dev channel pretty soon. 我不知道什么时候它会出现在AS版本中,但是我敢打赌它会很快出现在开发者频道中。

该错误现已修复,已更新至Android Studio 1.0.1

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

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