我试着在默认的hello cordova项目上运行"cordova emulate android“,但是当我运行它时,我得到了一个警告:”冷启动:快照不存在“,而模拟器屏幕只是停留在黑色。以下是终端输出:
BUILD SUCCESSFUL in 3s
47 actionable tasks: 1 executed, 46 up-to-date
Built the following apk(s):
/home/marc/Documents/Tests/cordova/hello/platforms/android/app/build/outputs/apk/debug/app-debug.apk
ANDROID_HOME=/home/marc/Android/Sdk
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
No emulator specified, defaulting to test
Waiting for emulator to start...
emulator: Requested console port 5584: Inferring adb port 5585.
emulator: WARNING: Host CPU is missing the following feature(s) required for x86 emulation: SSSE3
Hardware-accelerated emulation may not work properly!
emulator: WARNING: Not all modern X86 virtualization features supported, which introduces problems with slowdown when running Android on multicore vCPUs. Setting AVD to run with 1 vCPU core only.
warning: host doesn't support requested feature: CPUID.01H:ECX.ssse3 [bit 9]
emulator: WARNING: Not saving state: emulator hasn't finished booting.我该如何解决这个问题呢?
附注:我在Ubuntu 16.04.3 LTS上使用的是andorid api版本26
发布于 2018-04-24 07:11:36
我回答了一个类似于此here的问题。快速:问题可能出在CPU硬件上。某些AVD Google API级别不能在不支持某些功能的CPU上很好地运行;在你的例子中是'SSSE3‘。试试更老的AVD Google API level <= 20。
https://stackoverflow.com/questions/48796714
复制相似问题