Android Studio - Panic: Could not open AVD

后端 未结 3 1442
既然无缘
既然无缘 2021-02-14 15:16

After many hours of fixing Gradle issues, I was able to build my test app in Android Studio. But when I tried to run it in an AVD, it just won\'t open.

This is the log:<

相关标签:
3条回答
  • 2021-02-14 15:31

    You can use mklink (builtin of cmd.exe but NOT present in Powershell) to make a link like you would in linux. You must be an administrator to run the command, but once you do it will look like the directory is right there.

    Run cmd.exe as an administrator. Then in my case I issued the following:

    C:\Users\Dad>mklink /d .android E:\Joel\.android
    

    Creating a regular windows shortcut (right click etc.) does not work.

    0 讨论(0)
  • 2021-02-14 15:45

    Okay, my libraries are in D: drive. So I had to copy the .android folder from d:\myName\ to c:\Users\myName\. That fixed it.

    0 讨论(0)
  • 2021-02-14 15:57

    I got a slightly different solution working. I created a symlink/shortcut from C:\Users\myName\.android to D:\Users\myName\.android (right-click, create shortcut)

    0 讨论(0)
提交回复
热议问题