Forum Xamarin.Android

Android Q emulators always fails to boot

SebastianKruseSebastianKruse USMember ✭✭✭

When trying to boot an emulator with Android Q created through Visual Studio's Android device manager, I always end up with the error message "Device failure: Screenshot failed to find cb 0" and the emulator closes. Is there anything I can do about it? Based on the Android SDK from the Visual Studio SDK manager, I'm on the latest stable builds for everything.

Answers

  • JarvanJarvan Member, Xamarin Team Xamurai
    edited March 31

    Android Q emulators always fails to boot

    Will this occur only for Android Q emulator? Have you tried to create a new emultor? What's the result?

    Or you can try to uninstall and reinstall API 28 in Android SDK Manager, then create an emultor to test again.

  • SebastianKruseSebastianKruse USMember ✭✭✭

    Yes, online Android Q emulators. Yes, I tried multiple times to create new ones (even with different presets). I also already reinstalled the API for Android Q.

    Beside that, I can reproduce this issue on all 3 of my Windows systems. All macOS systems working fine (in case of macOS, I have created the emulators through Android Studio). I will test the Android Studio way the next time I have time for system modifications and tests.

  • JarvanJarvan Member, Xamarin Team Xamurai

    Beside that, I can reproduce this issue on all 3 of my Windows systems.

    What's the version of Visual Studio you test? If you are using Visual Studio 2017, update to Visual Studio 2017 version 15.8 or late.

    Check the link:
    https://docs.microsoft.com/en-us/xamarin/android/platform/pie#update-visual-studio

  • SebastianKruseSebastianKruse USMember ✭✭✭

    Currently I'm using Visuao Studio Enterprise 2019 in Version 16.5.1 on all devices. So I don't think that should be an issue.

  • MREmeMREme Member ✭✭

    What does your config.ini & hardware-qemu.ini file look like for that AVD? Perhaps someone can identify an issue with it if you post it.

    Generally you can find it in this folder:
    ...android\avd\AVDNAME
    Or open the Android Device Manager in VS and right click, choose "Reveal in Explorer".

  • SebastianKruseSebastianKruse USMember ✭✭✭
    edited April 7

    Sorry for the delay, had todo some private stuff the last days and could not reply. Here are the infos you want:

    config.ini:

    disk.dataPartition.size = 6442450944
    fastboot.forceColdBoot = no
    fastboot.forceFastBoot = yes
    hw.accelerometer = yes
    hw.arc = no
    hw.audioInput = yes
    hw.battery = yes
    hw.camera.back = virtualscene
    hw.camera.front = emulated
    hw.cpu.ncore = 4
    hw.dPad = no
    hw.gps = yes
    hw.gpu.mode = auto
    hw.keyboard = yes
    hw.lcd.density = 440
    hw.lcd.height = 2220
    hw.lcd.width = 1080
    hw.mainKeys = no
    hw.ramSize = 1536
    hw.sdCard = yes
    hw.sensors.orientation = yes
    hw.sensors.proximity = yes
    hw.trackBall = no
    sdcard.size = 512M
    skin.name = pixel_3a
    skin.path = C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\Xamarin\AndroidDeviceManager\SystemSkins\pixel_3a
    vm.heapSize = 256
    hw.device.hash2 = MD5:364b7a635f31379c522a5dc2aa05fcf4
    hw.device.name = pixel_3a
    hw.device.manufacturer = Google
    showDeviceFrame = yes
    tag.id = google_apis_playstore
    tag.display = Google Play
    PlayStore.enabled = true
    abi.type = x86
    hw.cpu.arch = x86
    hw.gpu.enabled = yes
    avd.ini.displayname = Pixel-3a-Store
    image.sysdir.1 = system-images\android-29\google_apis_playstore\x86\
    AvdId = pixel-3a-store

    hardware-qemu.ini:

    hw.cpu.arch = x86
    hw.cpu.model = qemu32
    hw.cpu.ncore = 4
    hw.ramSize = 2048
    hw.screen = multi-touch
    hw.mainKeys = false
    hw.trackBall = false
    hw.keyboard = true
    hw.keyboard.lid = false
    hw.keyboard.charmap = qwerty2
    hw.dPad = false
    hw.rotaryInput = false
    hw.gsmModem = true
    hw.gps = true
    hw.battery = true
    hw.accelerometer = true
    hw.gyroscope = true
    hw.audioInput = true
    hw.audioOutput = true
    hw.sdCard = true
    hw.sdCard.path = C:\Users\Sebastian Kruse.android\avd\pixel-3a-store.avd\sdcard.img
    disk.cachePartition = true
    disk.cachePartition.path = C:\Users\Sebastian Kruse.android\avd\pixel-3a-store.avd\cache.img
    disk.cachePartition.size = 66m
    test.quitAfterBootTimeOut = -1
    test.delayAdbTillBootComplete = 0
    test.monitorAdb = 0
    hw.lcd.width = 1080
    hw.lcd.height = 2220
    hw.lcd.depth = 16
    hw.lcd.density = 440
    hw.lcd.backlight = true
    hw.lcd.vsync = 60
    hw.gltransport = pipe
    hw.gltransport.asg.writeBufferSize = 1048576
    hw.gltransport.asg.writeStepSize = 4096
    hw.gltransport.asg.dataRingSize = 32768
    hw.gltransport.drawFlushInterval = 800
    hw.displayRegion.0.1.xOffset = -1
    hw.displayRegion.0.1.yOffset = -1
    hw.displayRegion.0.1.width = 0
    hw.displayRegion.0.1.height = 0
    hw.fold.adjust = false
    hw.display1.width = 0
    hw.display1.height = 0
    hw.display1.density = 0
    hw.display1.xOffset = -1
    hw.display1.yOffset = -1
    hw.display1.flag = 0
    hw.display2.width = 0
    hw.display2.height = 0
    hw.display2.density = 0
    hw.display2.xOffset = -1
    hw.display2.yOffset = -1
    hw.display2.flag = 0
    hw.display3.width = 0
    hw.display3.height = 0
    hw.display3.density = 0
    hw.display3.xOffset = -1
    hw.display3.yOffset = -1
    hw.display3.flag = 0
    hw.gpu.enabled = true
    hw.gpu.mode = host
    hw.initialOrientation = portrait
    hw.camera.back = virtualscene
    hw.camera.front = emulated
    vm.heapSize = 512
    hw.sensors.light = true
    hw.sensors.pressure = true
    hw.sensors.humidity = true
    hw.sensors.proximity = true
    hw.sensors.magnetic_field = true
    hw.sensors.magnetic_field_uncalibrated = true
    hw.sensors.gyroscope_uncalibrated = true
    hw.sensors.orientation = true
    hw.sensors.temperature = true
    hw.useext4 = true
    hw.arc = false
    hw.arc.autologin = false
    kernel.path = C:\Program Files (x86)\Android\android-sdk\system-images\android-29\google_apis_playstore\x86\kernel-ranchu-64
    kernel.newDeviceNaming = yes
    kernel.supportsYaffs2 = no
    disk.ramdisk.path = C:\Program Files (x86)\Android\android-sdk\system-images\android-29\google_apis_playstore\x86\ramdisk.img
    disk.systemPartition.initPath = C:\Program Files (x86)\Android\android-sdk\system-images\android-29\google_apis_playstore\x86\system.img
    disk.systemPartition.size = 2284m
    disk.vendorPartition.initPath = C:\Program Files (x86)\Android\android-sdk\system-images\android-29\google_apis_playstore\x86\vendor.img
    disk.vendorPartition.size = 800m
    disk.dataPartition.path = C:\Users\Sebastian Kruse.android\avd\pixel-3a-store.avd\userdata-qemu.img
    disk.dataPartition.initPath = C:\Users\Sebastian Kruse.android\avd\pixel-3a-store.avd\userdata.img
    disk.dataPartition.size = 6g
    disk.encryptionKeyPartition.path = C:\Users\Sebastian Kruse.android\avd\pixel-3a-store.avd\encryptionkey.img
    PlayStore.enabled = true
    avd.name = pixel-3a-store
    avd.id = pixel-3a-store
    fastboot.forceColdBoot = false
    android.sdk.root = C:\Program Files (x86)\Android\android-sdk
    android.avd.home = C:\Users\Sebastian Kruse.android\avd

    Error Screenshot:

Sign In or Register to comment.