Emulator run fail

Hi, I am using Circle CI 2.0.

I copied the code from https://github.com/circleci/cci-demo-android/blob/master/.circleci/config.yml and changed some code, bc it did not work. However, I still get failed when trying to run an emulator.
Please help.

emulator: ERROR: This AVD's configuration is missing a kernel file! Please ensure the file "kernel-qemu" is in the same location as your system image.
emulator: ERROR: ANDROID_SDK_ROOT is undefined
Exited with code 1

Below is my config.yml

 - run:
      name: List what is currently installed
      command: sdkmanager --list
  - run:
      name: Create AVD
      command: sdkmanager "system-images;android-27;google_apis;x86" && echo "no" | avdmanager -v create avd -n androidlearn -k "system-images;android-27;google_apis;x86" -c 2048M -g google_apis  -d "Nexus 7 2013"
  - run:
      name: Run Emulator
      background: true
      command: |
        cd ${ANDROID_HOME}/emulator;ls
        export LD_LIBRARY_PATH=${ANDROID_HOME}/emulator/lib64:${ANDROID_HOME}/emulator/lib64/qt/lib
        emulator64-arm -no-window -noaudio -no-boot-anim -gpu swiftshader @androidlearn

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.