android-emulator-runner: could not connect to TCP port 5554: Connection refused
Hello
I have an error when I try to start an emulator. My workflow is
name: Generate screenshots
on: [pull_request]
jobs:
screenshots:
name: Generate screenshots
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- name: Cache Gradle packages
uses: actions/cache@v2.1.6
with:
path: |
~/.gradle/caches
.gradle
key: ${{ runner.os }}-gradle-quality-${{ hashFiles('**/*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-quality-
- name: Cache Gradle wrapper
uses: actions/cache@v2.1.6
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradlew') }}
restore-keys: |
${{ runner.os }}-gradle-wrapper-
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.6'
bundler-cache: true
- name: create AVD
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 28
target: default
arch: x86
profile: Nexus 6
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: echo "Generated AVD."
and the error
/Users/runner/android-sdk/platform-tools/adb -s emulator-5554 emu kill
error: could not connect to TCP port 5554: Connection refused
The process '/Users/runner/android-sdk/platform-tools/adb' failed with exit code 1
Error: The process '/bin/sh' failed with exit code 1
Thanks!
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 6
- Comments: 34 (8 by maintainers)
Commits related to this issue
- yml 파일 오류 ㅠb2 ref: https://github.com/ReactiveCircus/android-emulator-runner/issues/161 — committed to megadeth10/Github_Test_Application by deleted user 2 years ago
- yml 파일 오류 ㅠb3 ref: https://github.com/ReactiveCircus/android-emulator-runner/issues/161 — committed to megadeth10/Github_Test_Application by deleted user 2 years ago
- githubactions error: could not connect to TCP port 5554: Connection refused. https://github.com/ReactiveCircus/android-emulator-runner/issues/161#issuecomment-867470579 — committed to btcdevops-apps/TOAmy by deleted user a year ago
I have just met this issue and noticed that it was happening due to the hanging ADB server. Mine has been solved by running the following commands:
adb kill-serveradb start-serverIt doesn’t work with API 30 though, we have the same error with API 30
I separately ran into this error using expo & Android:
I fixed it by finding and stopping the process using port 5555 (I had a docker compose container using it). Unhelpful error message from the Android team.
it’s work perfectly
@ychescale9
emulator-build: 7425822works for me! Thanks for the quick fix.It works with
emulator-build: 7425822, I don’t have any error 🎉 Thank you so much. I tried with a simple echo for now though, I’ll try tomorrow with a script that actually need a device@ychescale9 I’m also seeing this in Coil if you want to use that repo to debug.
I have the same error than before
with
Please see https://github.com/ReactiveCircus/android-emulator-runner/issues/160