Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
272 views
in Technique[技术] by (71.8m points)

Android Studio - Error in launch emulator - Vulkan-1.dll

when I launch the emulator in Android Studio, the following two errors occur in the event log:

Emulator: handleCpuAcceleration: feature check for hvf
Emulator: cannot add library vulkan-1.dll: failed

Someone knows how to solve them? Thank you,

Marco

question from:https://stackoverflow.com/questions/65641695/android-studio-error-in-launch-emulator-vulkan-1-dll

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I think you don't have the JDK installed.

Check it out with this command (for example, on the command line):

flutter doctor

If there is an exclamation mark or a red cross next to the "Android toolchain" line, then you do not have the JDK installed.

The solution to this problem is very simple:

  1. Download JDK from this link;
  2. Extract it and rename the internal folder “jdk8u202-b08” to “openjdk” and copy it under HDD or SSD (so its path will be: C:openjdk);
  3. Set Some Environment variables (search on google if you don't know). Name: "JAVA_HOME", path "C:openjdk";
  4. To restart a computer.

This should help. Good luck!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...