@@ -405,7 +405,10 @@ jobs:
405405 yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses
406406 - name : " Install required SDK components"
407407 run : |
408- yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install 'build-tools;34.0.0' 'platform-tools' 'system-images;android-34;default;arm64-v8a'
408+ yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses
409+ yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --update
410+ yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install 'build-tools;34.0.0' platform-tools emulator
411+ yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install 'system-images;android-34;default;x86' --channel=0
409412 - name : " Setup AVD cache"
410413 uses : actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed # v2
411414 id : avd-cache
@@ -414,21 +417,21 @@ jobs:
414417 /Users/runner/.android/avd/*
415418 /Users/runner/.android/adb*
416419 /Users/runner/Library/Android/sdk/system-images/**/*
417- key : pixel_34_arm64_default_3core_and_system_images
420+ key : pixel_34_x86_default_3core_and_system_images
418421 - name : " Create AVD and generate snapshot for caching"
419422 if : steps.avd-cache.outputs.cache-hit != 'true'
420423 uses : reactivecircus/android-emulator-runner@6b0df4b0efb23bb0ec63d881db79aefbc976e4b2 # v2.30.1
421424 with :
422425 api-level : 34
423426 target : default
424- arch : arm64-v8a
427+ arch : x86
425428 profile : pixel
426429 cores : 3
427430 ram-size : 4096M
428431 heap-size : 512M
429432 avd-name : NATIVE_pixel_34
430433 force-avd-creation : true
431- emulator-options : -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -no-accel
434+ emulator-options : -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
432435 disable-animations : true
433436 script : echo "AVD created"
434437 android-tests :
0 commit comments