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
449 views
in Technique[技术] by (71.8m points)

android - Emulator: Warning: Quick Boot / Snapshots not supported on this machine

I am starting to learn android but havent been able to get anywhere. I downloaded android studio as per instructions and im trying to set up an AVD. I am using a Mac Air(macOS High Sierra) with java 1.8.0_51.

The moment i launch an AVD there is a warning in the event log: "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."

The emulator just gets stuck on the loading page.

So far i have tried to : 1. Reduce AVD Ram size 2. Increase AVD heap size 3. change to "software" to avoid issues if any with my graphics card 4. Install/ delete many versions of phones/api levels for avd

In the Logcat logs i see the following errors:

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)

....

Please let me know what i can do to fix this and get any emulator working!

See Question&Answers more detail:os

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

1 Reply

0 votes
by (71.8m points)

The issue might be your CPU hardware. AVD Google API levels 21+ do not run well on CPUs that do not support Extended Page Tables (EPT) and Unrestricted Guest (UG) such as Core 2 Duo. Your best option is to try an system image with AVD Google API level <= 20 on those types of CPUs. You will still see this warning, but the emulator will boot up.


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

...