I tried running Android AVD for Jelly Bean (API-16) and Google APIs (I included both platform definitions). When starting AVD, I get the following error.
$ emulator -avd Nexus_7_API_16_With_Google_APIs
emulator: ERROR: This is missing a kernel file in the AVD configuration! emulator: ERROR: ANDROID_SDK_ROOT is detected (C: \ data \ applications \ Android \ Sdk), but the kernel file cannot be found in C: \ data \ applications \ Android \ Sdk \ system-images \ sub-directories
I read all similar instances that I could find on Stackoverflow and other sites, but none of them were appropriate for my situation.
Unlike most configuration files, those used for the Jelly Bean and Google API are located in a system-specific rather than a system-specific way. For example:.
$ cd $ ANDROID_SDK_HOME / .android / avd / Nexus_7_API_16_With_Google_APIs.avd / config.ini
$ grep image config.ini
image.sysdir.1 = add-ons \ addon-google_apis-google-16 \ images \ armeabi-v7a
In fact, the "system image" looks hardcoded in the emulator (although it is possible that there is a way around this - see Unable to start the emulator in Android Studio ).
This is very much like a mistake.
Advice ???
Thanks Barry
android android-emulator android-studio
Barry holroyd
source share