Android Studio 模拟器不工作 [英] Android Studio emulator is not working
问题描述
我已经搜索了一个 awnser 来解决这个问题,尝试了很多方法,但仍然不起作用.我使用的是 win7 64 位版本.我已经设置了 ANDROID_SDK_HOME 变量......没有.使用路径:C:\Users\Nuno\Favorites\.android\avd
i´ve searched about an awnser for this problem, tried many things, but still it doesn't Work.
I'm using a win7 64-bit version.
I've set the ANDROID_SDK_HOME variable and... nothing.
With the path: C:\Users\Nuno\Favorites\.android\avd
错误是这样的:
Cannot launch AVD in emulator.
Output:
PANIC: HOME is defined but could not find PhoneTest.ini file in $HOME\.android\avd
(Note: avd is searched in the order of $ANDROID_AVD_HOME,$ANDROID_SDK_HOME\.android\avd and $HOME\.android\avd)
有人可以帮我吗?
推荐答案
现在可以使用了!
我是怎么解决的?我复制了我从 c:\user\favorites.android\avd 创建的 AVM 并将它们粘贴到 c:\user.android\avd.
How did i solved? I copied the AVM's i created from c:\user\favorites.android\avd and pasted them at c:\user.android\avd.
Tbh 我不知道为什么会发生这种情况,但是当我安装 Android Studio 时,它创建了第一个目录来放置 avd,而 HOME 变量指向第二个目录.
Tbh i don't know why this happened but when i installed Android studio it created the first directory to put the avd's, while the HOME variable points to the second directory.
之后我遇到了第二个问题,它说它无法创建临时文件...我只需要以管理权限执行 Android studio.
After that i had a second problem, it said it couldn't create the temp file... I just had to execute Android studio with administrative privileges.
希望能帮到你.
这篇关于Android Studio 模拟器不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!