【问题标题】:Emulator: Warning: Quick Boot / Snapshots not supported on this machine模拟器:警告:此机器不支持快速启动/快照
【发布时间】:2018-08-18 09:02:34
【问题描述】:

我开始学习 android,但还没有到任何地方。我按照说明下载了 android studio 并尝试设置 AVD。 我正在使用带有 java 1.8.0_51 的 Mac Air(macOS High Sierra)。

在我启动 AVD 的那一刻,事件日志中有一条警告: “模拟器:警告:此机器不支持快速启动/快照。当前需要具有 EPT + UG 功能的 CPU。我们将在未来的版本中解决这个问题。”

模拟器卡在加载页面上。

到目前为止,我已经尝试过: 1. 减小 AVD Ram 大小 2.增加AVD堆大小 3.更改为“软件”以避免我的显卡出现问题 4.为avd安装/删除多个版本的电话/api级别

在 Logcat 日志中,我看到以下错误:

03-09 17:27:15.544 0-1114/? I/lowmemorykiller:无内核 memory.pressure_level 支持 (errno=2) 03-09 17:27:15.545 0-1114/? E/lowmemorykiller:内核不支持内存压力事件或 内核内存不足的杀手

.....

03-09 17:30:28.470 1122-1122/? I/iptables:iptables v1.4.20:不能 初始化iptables表'nat':表不存在(你需要 insmod?) 03-09 17:30:28.470 1122-1122/? I/iptables:也许是 iptables 或者您的内核需要升级。 03-09 17:30:28.470 1122-1122/? I/iptables:iptables 由 exit(3) 03-09 17:30:28.629 终止 1122-1122/? E/Netd: exec() res=0, status=768 for /system/bin/iptables -t nat -N oem_nat_pre 03-09 17:30:30.888 1122-1122/? I/iptables: iptables v1.4.20: 无法初始化 iptables 表 'nat': 表可以 不存在(你需要 insmod 吗?) 03-09 17:30:30.888 1122-1122/? I/iptables:也许 iptables 或您的内核需要升级。 03-09 17:30:30.902 1122-1122/? I/iptables:iptables 终止于 出口(3) 03-09 17:30:31.112 1135-1135/? E/memtrack:无法加载 memtrack 模块(没有这样的文件或目录)03-09 17:30:31.114 1135-1135/? E/android.os.Debug:无法加载 memtrack 模块:-2 03-09 17:30:31.257 1122-1122/? E/Netd: exec() res=0, status=768 for /system/bin/iptables -t nat -A PREROUTING -j oem_nat_pre 03-09 17:30:35.605 1122-1122/? I/iptables:iptables v1.4.20:不能 初始化iptables表`nat':表不存在(你需要 insmod?) 03-09 17:30:35.607 1122-1122/? I/iptables:也许是 iptables 或者您的内核需要升级。 03-09 17:30:35.607 1122-1122/? I/iptables: iptables 被 exit(3) 终止

....

请让我知道我可以做些什么来解决这个问题并让任何模拟器正常工作!

【问题讨论】:

  • 我已在 Google 的 IssueTracker 中提交了此 issue

标签: android macos android-studio installation


【解决方案1】:

问题可能出在您的 CPU 硬件上。 AVD Google API 级别 21+ 在不支持 Extended Page Tables (EPT) and Unrestricted Guest (UG) 的 CPU(例如 Core 2 Duo)上运行不佳。您最好的选择是在这些类型的 CPU 上尝试使用 AVD Google API 级别

【讨论】:

    【解决方案2】:

    如果你有足够的内存并且问题仍然存在,请安装:

    Intel x86 Emulator Accelerator (HAXM installer) 来自 Android Studio SDK 工具

    希望这对某人有所帮助

    【讨论】:

      【解决方案3】:

      我遇到了同样的问题。我到处搜索,但没有得到解决方案。然后我知道这个问题只是因为内存不足而发生的。

      您可以通过增加 RAM 来解决此问题。因为我的笔记本电脑有 4 GB RAM,当 RAM 增加时,问题就完全解决了!虽然我买了一台带有 i5 8th gen 的新笔记本电脑。它有 8gb 内存...

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2023-01-12
        • 2011-07-08
        • 2018-08-22
        • 1970-01-01
        • 2018-06-18
        • 1970-01-01
        • 1970-01-01
        • 2017-04-14
        相关资源
        最近更新 更多