[英]android studio emulator won't start/show up
I'm new to Android/Kotlin programming (not to programming in general) and I'm following the Kotlin Basics course on developer.android.com.我是 Android/Kotlin 编程的新手(不是一般的编程),我正在关注 developer.android.com 上的 Kotlin 基础课程。 The very first lesson after having installed Android Studio is to create a Virtual Device and run an extremely basic app on it.
安装 Android Studio 后的第一课是创建一个虚拟设备并在其上运行一个非常基本的应用程序。
However I can't get the emulator to work.但是我无法让模拟器工作。 The very first time I tried, it opened a small window with a progress bar but it became unresponsive at around 1/4 progress and I had to eventually kill it.
我第一次尝试时,它打开了一个带有进度条的小型 window,但它在大约 1/4 的进度处变得无响应,我最终不得不杀死它。 Since then it just won't start/open.
从那时起它就不会启动/打开。
After I click run, the code compiles and the Event Log within Android Studio says Executing tasks[...]
then Gradle build finished[...]
and that's it.单击运行后,代码编译,Android Studio 中的事件日志显示
Executing tasks[...]
然后Gradle build finished[...]
就是这样。 Nothing happens beyond that and the Emulator window says "No emulators are currently running".除此之外没有任何反应,并且模拟器 window 说“当前没有模拟器正在运行”。
However:然而:
What I could find:我能找到的:
I don't know what to do with either of these messages, though不过,我不知道如何处理这些消息中的任何一条
What I tried我试过的
None of this had any effect.这些都没有任何效果。
I'm running Android Studio Arctic Fox (2020.3.1 Patch 4) on Windows 10 Pro (10.0.19042 Build 19042).我在 Windows 10 Pro(10.0.19042 Build 19042)上运行 Android Studio Arctic Fox(2020.3.1 补丁 4)。 I am able to run the app on my actual phone but down the line I would like to be able to test apps on different types of devices or without having to always use my physical one.
我可以在我的实际手机上运行该应用程序,但我希望能够在不同类型的设备上测试应用程序,或者不必总是使用我的物理设备。
All help would be greatly appreciated.所有帮助将不胜感激。
By running and emulator.exe command in a command prompt, I was able to see yet another error message, the same one as in this post: emulator: incompatible HAX module version 3 requirs minimum version 4 , and the answer to that post from user Harold Sota (as well as the comment under it from Harun, more specific to my situation) solved the issue.通过在命令提示符下运行 emulator.exe 命令,我可以看到另一条错误消息,与这篇文章中的相同: emulator: incompatible HAX module version 3 require minimum version 4 ,以及用户对该帖子的回答Harold Sota(以及来自 Harun 的评论,更具体地针对我的情况)解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.