Introduction

新しい OS (今回は Android 11) を起動しようとして表示された、やたら長いエラー。

error

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Device error: emulator: autoconfig: -skin 1080x2340
emulator: autoconfig: -skindir (null)
emulator: autoconfig: -kernel C:\Program Files (x86)\Android\android-sdk\system-images\android-31\google_apis\x86_64\\kernel-ranchu
emulator: Target arch = 'x86_64'
emulator: ERROR: Can't find 'Linux version ' string in kernel image file: C:\Program Files (x86)\Android\android-sdk\system-images\android-31\google_apis\x86_64\\kernel-ranchu
emulator: Android emulator version 29.3.0.0 (build_id 6061023) (CL:N/A)
emulator: Found AVD name 'pixel_5_12_0_-_api_31'
emulator: Found AVD target architecture: x86_64
emulator: argv[0]: 'C:\Program Files (x86)\Android\android-sdk\emulator\emulator.exe'; program directory: 'C:\Program Files (x86)\Android\android-sdk\emulator'
emulator: Found directory: C:\Program Files (x86)\Android\android-sdk\system-images\android-31\google_apis\x86_64\

emulator: emuDirName: 'C:\Program Files (x86)\Android\android-sdk\emulator'
emulator: try dir C:\Program Files (x86)\Android\android-sdk\emulator
emulator: Trying emulator path 'C:\Program Files (x86)\Android\android-sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe'
emulator: Found target-specific 64-bit emulator binary: C:\Program Files (x86)\Android\android-sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe
emulator: Adding library search path: 'C:\Program Files (x86)\Android\android-sdk\emulator\lib64'
emulator: Adding library search path: 'C:\Program Files (x86)\Android\android-sdk\emulator\lib64\gles_angle'
emulator: Adding library search path: 'C:\Program Files (x86)\Android\android-sdk\emulator\lib64\gles_angle9'
emulator: Adding library search path: 'C:\Program Files (x86)\Android\android-sdk\emulator\lib64\gles_angle11'
emulator: Adding library search path: 'C:\Program Files (x86)\Android\android-sdk\emulator\lib64\gles_swiftshader'
emulator: Adding library search path for Qt: 'C:\Program Files (x86)\Android\android-sdk\emulator\lib64\qt\lib'
emulator: Silencing all qWarning(); use qCWarning(...) instead: QT_LOGGING_RULES=default.warning=false
emulator: Setting Qt plugin search path: QT_QPA_PLATFORM_PLUGIN_PATH=C:\Program Files (x86)\Android\android-sdk\emulator\lib64\qt\plugins
emulator: Setting Qt to use software OpenGL: QT_OPENGL=software
emulator: Setting QML to use software QtQuick2D: QMLSCENE_DEVICE=softwarecontext
emulator: Overriding pre-existing bad Qt high dpi settings...
emulator: Quoted param: ["C:\Program Files (x86)\Android\android-sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe"]
emulator: Quoted param: [-netfast]
emulator: Quoted param: [-verbose]
emulator: Quoted param: [-avd]
emulator: Quoted param: [pixel_5_12_0_-_api_31]
emulator: Quoted param: [-prop]
emulator: Quoted param: [monodroid.avdname=pixel_5_12_0_-_api_31]
emulator: Quoted param: [-prop]
emulator: Quoted param: [emu.uuid=b852a93a-e71c-4caf-bf82-0f05b94f45bb]
emulator: Running :C:\Program Files (x86)\Android\android-sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe
emulator: qemu backend: argv[00] = ""C:\Program Files (x86)\Android\android-sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe""
emulator: qemu backend: argv[01] = "-netfast"
emulator: qemu backend: argv[02] = "-verbose"
emulator: qemu backend: argv[03] = "-avd"
emulator: qemu backend: argv[04] = "pixel_5_12_0_-_api_31"
emulator: qemu backend: argv[05] = "-prop"
emulator: qemu backend: argv[06] = "monodroid.avdname=pixel_5_12_0_-_api_31"
emulator: qemu backend: argv[07] = "-prop"
emulator: qemu backend: argv[08] = "emu.uuid=b852a93a-e71c-4caf-bf82-0f05b94f45bb"
emulator: Concatenated backend parameters:
'"C:\Program Files (x86)\Android\android-sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe"' -netfast -verbose -avd pixel_5_12_0_-_api_31 -prop monodroid.avdname=pixel_5_12_0_-_api_31 -prop emu.uuid=b852a93a-e71c-4caf-bf82-0f05b94f45bb

Resolution

肝は Can't find 'Linux version ' というエラー。
要するに、シミュレーターが古くて、対応した Linux が見つかりませんってこと。

Android SDK Manager に更新が来ているはずなので、そこから更新すれば起動できます。

sdk

左下の N 個の更新プログラムが利用可能 を押下して、再度挑戦したら無事に起動しました。