gpt4 book ai didi

android - AVD 模拟器在 Android Studio 中不工作

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:14:41 26 4
gpt4 key购买 nike

在 android studio 上运行模拟器时,我的事件日志:

17:11 Executing tasks: [:app:assembleDebug]

17:11 Emulator: Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release.

17:11 Emulator: Warning: requested RAM 1536M too high for your system. Reducing to maximum supported size 512M

17:11 Emulator: C:\Users....\AppData\Local\Android\Sdk\emulator\qemu\windows-x86\qemu-system-x86_64.exe: Could not load library WinHvPlatform.dll.

17:11 Emulator: C:\Users....\AppData\Local\Android\Sdk\emulator\qemu\windows-x86\qemu-system-x86_64.exe: failed to initialize WHPX: Function not implemented

17:11 Emulator: Process finished with exit code 0

17:11 Gradle build finished in 2 s 704 ms

所有粗体句都以RED颜色显示。

我收到通知作为:

Emulator: C:\Users....\AppData\Local\Android\Sdk\emulator\qemu\windows-x86\qemu-system-x86_64.exe: failed to initialize WHPX: Function not implemented

我的 SDK 平台: enter image description here

我的 SDK 工具: enter image description here

我尝试通过引用解决问题:https://stackoverflow.com/a/52587220/7678788 (我无法更改它)所以,我求助于 https://stackoverflow.com/a/52342344/7678788 , 但这也没有解决问题。

My SDK Platform and SDK Tools are of the latest version.

如何解决这个问题?


更新

我还安装了最新的 Intel x86 Emulator Accelerator (HAXM) 并尝试运行模拟器,我的事件日志:

19:11 Executing tasks: [:app:assembleDebug]

19:11 Emulator: Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release.

19:11 Emulator: Warning: requested RAM 1536M too high for your system. Reducing to maximum supported size 512M

19:11 Gradle build finished in 8 s 357 ms

19:11 Emulator: Process finished with exit code 0

所有粗体句都以RED颜色显示。

最佳答案

虽然模拟器(仅限模拟器)要求 512mb 的内存作为最低要求,但这是不推荐的,因为您的系统、android studio 和后台进程也需要内存来运行android studio 我建议至少有 4gb 的 ram,但如果这不可能,你应该在运行模拟器之前尝试至少有 768mb 的空闲 ram。

作为引用,有一些操作系统 ram 使用(全部在 x64 操作系统上)
Windows 7:460mb - 540mb
Windows 8:1.8gb - 2.4gbWindows 10:1.5gb - 2.5gb

关于android - AVD 模拟器在 Android Studio 中不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55713335/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com