emulator: ERROR: unknown skin name
export ANDROID_SDK_ROOT=<path-to>/out/host/<system>/sdk?android-sdk_eng.<user>_<system>
export PATH=$ANDROID_SDK_ROOT/tools:$PATH
$ emulator -avd wvga
emulator: ERROR: unknown skin name 'WVGA800'$ export ANDROID_SDK_ROOT=~/JRO03L/out/host/linux-x86/sdk/android-sdk_eng.[username]_linux-x86/
$ export PATH=$ANDROID_SDK_ROOT/tools:$PATH
config.iniのskin.pathが違うようだ。
$ emulator -verbose -avd 7inch
emulator: found ANDROID_SDK_ROOT: /home/m_fujii/JRO03L/out/host/linux-x86/sdk/android-sdk_eng.m_fujii_linux-x86
emulator: Android virtual device file at: /home/m_fujii/.android/avd/7inch.ini
emulator: virtual device content at /home/m_fujii/.android/avd/7inch.avd
emulator: virtual device config file: /home/m_fujii/.android/avd/7inch.avd/config.ini
emulator: using core hw config path: /home/m_fujii/.android/avd/7inch.avd/hardware-qemu.ini
emulator: Found AVD target API level: 16
emulator: Warning: config.ini contains invalid skin.path entry: platforms/android-16/skins/WXGA800-7in
emulator: autoconfig: -skin WXGA800-7in
emulator: autoconfig: -skindir (null)
emulator: keyset loaded from: /home/m_fujii/.android/default.keyset
emulator: ERROR: unknown skin name 'WXGA800-7in'
$
$cd ~/.android/avd/7inch.avd
$ cat config.ini
hw.mainKeys=no
hw.lcd.density=213
skin.name=WXGA800-7in
skin.path=platforms/android-16/skins/WXGA800-7in <=パスが違う
hw.cpu.arch=arm
hw.keyboard.lid=no
abi.type=armeabi-v7a
hw.cpu.model=cortex-a8
vm.heapSize=48
hw.ramSize=1024
image.sysdir.1=system-images/android-16/armeabi-v7a/ <=パスが違う
シンボリックリンクを貼ってみる。
$cd ~/JRO03L/out/host/linux-x86/sdk/android-sdk_eng.m_fujii_linux-x86/platforms
$ln -s ./android-4.1.1 android-16$ ls -al
合計 12
drwxrwx--- 3 m_fujii m_fujii 4096 8月 30 11:19 .
drwxrwx--- 11 m_fujii m_fujii 4096 8月 30 09:12 ..
lrwxrwxrwx 1 m_fujii m_fujii 15 8月 30 11:19 android-16 -> ./android-4.1.1
drwxrwx--- 5 m_fujii m_fujii 4096 8月 30 09:12 android-4.1.1
スキンのエラーは消えた。
今度はカーネルファイルがエラーになった。
$ emulator -avd 7inch -verbose
emulator: found ANDROID_SDK_ROOT: /home/m_fujii/JRO03L/out/host/linux-x86/sdk/android-sdk_eng.m_fujii_linux-x86
emulator: Android virtual device file at: /home/m_fujii/.android/avd/7inch.ini
emulator: virtual device content at /home/m_fujii/.android/avd/7inch.avd
emulator: virtual device config file: /home/m_fujii/.android/avd/7inch.avd/config.ini
emulator: using core hw config path: /home/m_fujii/.android/avd/7inch.avd/hardware-qemu.ini
emulator: Found AVD target API level: 16
emulator: found skin 'WXGA800-7in' in directory: /home/m_fujii/JRO03L/out/host/linux-x86/sdk/android-sdk_eng.m_fujii_linux-x86/platforms/android-16/skins
emulator: autoconfig: -skin WXGA800-7in
emulator: autoconfig: -skindir /home/m_fujii/JRO03L/out/host/linux-x86/sdk/android-sdk_eng.m_fujii_linux-x86/platforms/android-16/skins
emulator: found skin-specific hardware.ini: /home/m_fujii/JRO03L/out/host/linux-x86/sdk/android-sdk_eng.m_fujii_linux-x86/platforms/android-16/skins/WXGA800-7in/hardware.ini
emulator: keyset loaded from: /home/m_fujii/.android/default.keyset
emulator: trying to load skin file '/home/m_fujii/JRO03L/out/host/linux-x86/sdk/android-sdk_eng.m_fujii_linux-x86/platforms/android-16/skins/WXGA800-7in/layout'
emulator: skin network speed: 'full'
emulator: skin network delay: 'none'
emulator: ERROR: This AVD's configuration is missing a kernel file!!
$ cd ~/JRO03L/out/host/linux-x86/sdk/android-sdk_eng.m_fujii_linux-x86/system-images
$ ls
android-4.1.1
これで動くようになった。