我使用以下设置创建了android仿真器:
Name: Pixel_API_27_Oreo
CPU/ABI: Google Play Intel Atom (x86)
Path: C:\Users\username\AppData\Local\Android\sdk\.android\avd\Pixel_API_27_Oreo.avd
Target: google_apis_playstore [Google Play] (API level 27)
Skin: pixel_silver
SD Card: 512M
fastboot.chosenSnapshotFile:
runtime.network.speed: full
hw.accelerometer: yes
hw.device.name: pixel
hw.lcd.width: 1080
hw.initialOrientation: Portrait
image.androidVersion.api: 27
tag.id: google_apis_playstore
hw.mainKeys: no
hw.camera.front: emulated
avd.ini.displayname: Pixel API 27 Oreo
hw.gpu.mode: auto
hw.ramSize: 1536
PlayStore.enabled: true
fastboot.forceColdBoot: no
hw.cpu.ncore: 4
hw.keyboard: yes
hw.sensors.proximity: yes
hw.dPad: no
hw.lcd.height: 1920
vm.heapSize: 228
skin.dynamic: yes
hw.device.manufacturer: Google
hw.gps: yes
hw.audioInput: yes
image.sysdir.1: system-images\android-27\google_apis_playstore\x86\
showDeviceFrame: yes
hw.camera.back: virtualscene
AvdId: Pixel_API_27_Oreo
hw.lcd.density: 420
hw.arc: false
hw.device.hash2: MD5:55acbc835978f326788ed66a5cd4c9a7
fastboot.forceChosenSnapshotBoot: no
fastboot.forceFastBoot: yes
hw.trackBall: no
hw.battery: yes
hw.sdCard: yes
tag.display: Google Play
runtime.network.latency: none
disk.dataPartition.size: 2G
hw.sensors.orientation: yes
avd.ini.encoding: UTF-8
hw.gpu.enabled: yes
如果在FireFox v 67.0运行时启动了模拟器,则它将立即崩溃。
我尝试过的事情 我可以毫无问题地启动运行x86牛轧糖或棉花糖的仿真器映像。
这是android studio中的错误:
5:42 PM Emulator: Fatal: createDIB: CreateDIBSection failed (300x300, format: 6) ((null):0, (null))
5:42 PM Emulator: Process finished with exit code -1073740286 (0xC0000602)
5:43 PM Emulator: terminate called without an active exception
5:44 PM Emulator: Warning: QObject::~QObject: Timers cannot be stopped from another thread ((null):0, (null))
5:44 PM Emulator: Process finished with exit code 3
如果FireFox没有运行,则在模拟器启动时会出现此错误(请记住,这是从新映像开始的,以前从未启动过)。
如果我在手机上执行任何操作,则模拟器上会出现黑屏。
如果再次启动图像,则模拟器屏幕为黑/黑,并且在Android Studio中看到以下消息
但是模拟器上没有消息。