Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: could not connect to TCP port 5554: Connection refused #106

Closed
jaredsburrows opened this issue Nov 18, 2020 · 2 comments
Closed

error: could not connect to TCP port 5554: Connection refused #106

jaredsburrows opened this issue Nov 18, 2020 · 2 comments

Comments

@jaredsburrows
Copy link

Example:
https://github.com/jaredsburrows/android-gif-example/runs/1419778110?check_suite_focus=true#step:8:37

Error:

Run reactivecircus/android-emulator-runner@v2
  with:
    api-level: 30
    script: ./gradlew connectedDebugAndroidTest -Pci -s --scan
    target: default
    arch: x86
    avd-name: test
    emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim
    disable-animations: true
  env:
    GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false
    JAVA_HOME_15.0.1_x64: /Users/runner/hostedtoolcache/jdk/15.0.1/x64
    JAVA_HOME: /Users/runner/hostedtoolcache/jdk/15.0.1/x64
    JAVA_HOME_15_0_1_X64: /Users/runner/hostedtoolcache/jdk/15.0.1/x64
    API_LEVEL: 30
API level: 30
target: default
CPU architecture: x86
Hardware profile: 
AVD name: test
emulator options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim
disable animations: true
Script:
./gradlew connectedDebugAndroidTest -Pci -s --scan
Installing new cmdline-tools.
/usr/bin/unzip -q /Users/runner/work/_temp/081123c7-da1f-4bf5-a34f-4202dfd9ea38
Installing latest build tools, platform tools, and platform.
/bin/sh -c \sdkmanager --install 'build-tools;30.0.2' platform-tools 'platforms;android-30' > /dev/null
Installing latest emulator.
/bin/sh -c \sdkmanager --install emulator > /dev/null
Installing system images.
/bin/sh -c \sdkmanager --install 'system-images;android-30;default;x86' > /dev/null
Warning: Failed to find package 'system-images;android-30;default;x86'
/Users/runner/Library/Android/sdk/platform-tools/adb -s emulator-5554 emu kill
error: could not connect to TCP port 5554: Connection refused
The process '/Users/runner/Library/Android/sdk/platform-tools/adb' failed with exit code 1
Error: The process '/bin/sh' failed with exit code 1
@ychescale9
Copy link
Member

Unfortunately the API 30 system image with default target isn't available yet. If you set target: google_apis it should work.

@deandreamatias
Copy link

This issue have related with this comment, so maybe can update README with this info. Something like:

Target of the system image - defaultgoogle_apis or playstore. default don't work with api-level > 29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants