android - 模拟器 : Warning: Quick Boot/Snapshots not supported on this machine

标签 android macos android-studio installation

我开始学习 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安装/删除多版本phones/api levels

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

03-09 17:27:15.544 0-1114/? I/lowmemorykiller: No kernel memory.pressure_level support (errno=2) 03-09 17:27:15.545 0-1114/? E/lowmemorykiller: Kernel does not support memory pressure events or in-kernel low memory killer

.....

03-09 17:30:28.470 1122-1122/? I/iptables: iptables v1.4.20: can't initialize iptables table 'nat': Table does not exist (do you need to insmod?) 03-09 17:30:28.470 1122-1122/? I/iptables: Perhaps iptables or your kernel needs to be upgraded. 03-09 17:30:28.470 1122-1122/? I/iptables: iptables terminated by 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: can't initialize iptables table 'nat': Table does not exist (do you need to insmod?) 03-09 17:30:30.888 1122-1122/? I/iptables: Perhaps iptables or your kernel needs to be upgraded. 03-09 17:30:30.902 1122-1122/? I/iptables: iptables terminated by exit(3) 03-09 17:30:31.112 1135-1135/? E/memtrack: Couldn't load memtrack module (No such file or directory) 03-09 17:30:31.114 1135-1135/? E/android.os.Debug: failed to load memtrack module: -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: can't initialize iptables table `nat': Table does not exist (do you need to insmod?) 03-09 17:30:35.607 1122-1122/? I/iptables: Perhaps iptables or your kernel needs to be upgraded. 03-09 17:30:35.607 1122-1122/? I/iptables: iptables terminated by exit(3)

....

请告诉我如何解决此问题并让任何模拟器正常工作!

最佳答案

问题可能出在您的 CPU 硬件上。 AVD Google API 级别 21+ 在不支持 Extended Page Tables (EPT) and Unrestricted Guest (UG) 的 CPU 上运行不佳比如酷睿2。您最好的选择是在这些类型的 CPU 上尝试使用 AVD Google API 级别 <= 20 的系统镜像。您仍会看到此警告,但模拟器会启动。

关于android - 模拟器 : Warning: Quick Boot/Snapshots not supported on this machine,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49199715/

相关文章:

Android调用包含url中参数的XML Webservice

cocoa - 自定义 Finder 'get info' 窗口?

Java在Windows和Mac按键检测上的差异

android - Facebook 原生广告中的展示位置

java - 对话框 fragment 使用改造更改密码

android - cursor.moveToFirst() 总是返回 false

r - 如何将R脚本放入dockerfile中?

java - 在两个以上的 fragment 之间传递数据

java - fragment 交易问题

android - 从服务器 : Proxy Authentication Required 收到状态代码 407