Android Studio-恐慌:无法打开AVD
在修复Gradle问题很多小时后,我能够在Android Studio中构建我的测试应用程序。但当我试图在AVD中运行时,它只是不打开 这是日志:Android Studio-恐慌:无法打开AVD,android,avd,android-studio,Android,Avd,Android Studio,在修复Gradle问题很多小时后,我能够在Android Studio中构建我的测试应用程序。但当我试图在AVD中运行时,它只是不打开 这是日志: Waiting for device. C:\Users\Rahaman\AppData\Local\Android\android-studio\sdk\tools\emulator.exe -avd testAVD -netspeed full -netdelay none PANIC: Could not open: testAVD 注意:
Waiting for device.
C:\Users\Rahaman\AppData\Local\Android\android-studio\sdk\tools\emulator.exe -avd testAVD -netspeed full -netdelay none
PANIC: Could not open: testAVD
注意:我已经定义了环境变量ANDROID_SDK_HOME来指向.ANDROID目录。好的,我的库在
D:
drive中。
因此,我不得不将
.android
文件夹从d:\myName\
复制到c:\Users\myName\
。这就解决了问题。我找到了一个稍微不同的解决方案。我创建了一个符号链接/快捷方式,从C:\Users\myName\.android
到D:\Users\myName\.android
(右键单击,创建快捷方式)您可以使用(cmd.exe内置但不存在于Powershell中)创建一个类似于linux的链接。您必须是管理员才能运行该命令,但一旦您这样做,它看起来就像目录就在那里一样
以管理员身份运行cmd.exe。就我而言,我发布了以下文件:
C:\Users\Dad>mklink /d .android E:\Joel\.android
创建常规windows快捷方式(右键单击等)无效。如何修复GRADLE issue man。因为我在android studio中创建一个项目需要15分钟以上。“构建'APPNAME'gradle项目。”这个拨号框需要花费很长时间。你能告诉我你是如何在android studio中更改此路径引用的吗?@mukesh你不必在android studio中更改路径引用,只需将
.android
文件夹从其他驱动器移动到c:
驱动器