Posts /

Travis를 이용한 Android Build 과정의 문제해결

28 Jul 2018

Android & Travis

실행환경

Invalid --abi armeabi-v7a for the selected target.

예제 (공식 DOC)

before_script:
  - echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
  - emulator -avd test -no-audio -no-window &
  - android-wait-for-emulator
  - adb shell input keyevent 82 &

수정버전

before_install:
  - yes | sdkmanager "platforms;android-${COMPILE_SDK_VERION}"

before_script:
  - echo "y" | android update sdk -a --no-ui --filter android-${EMULATOR_SDK_VERSION}
  - echo "y" | android update sdk -a --no-ui --filter sys-img-armeabi-v7a-android-${EMULATOR_SDK_VERSION}
  - echo no | android create avd --force -n test -t android-${EMULATOR_SDK_VERSION} --abi armeabi-v7a
  - emulator -avd test -no-window &
  - android-wait-for-emulator
  - adb shell input keyevent 82 &

Twitter Facebook Google+