ReactiveCircus / android-emulator-runner

A GitHub Action for installing, configuring and running hardware-accelerated Android Emulators on macOS virtual machines.
Apache License 2.0
946 stars 186 forks source link

No internet on emulator #348

Open JoshLudahl opened 1 year ago

JoshLudahl commented 1 year ago

When running tests, it detects the emulators have no internet connection. Is this disabled by default or is there a work-around?

Pixel 5 API 31. Tried a few devices.

TobiGr commented 1 year ago

Same happens with my tests. They fail regularly because of this.

groot007 commented 11 months ago

same for me

I've tried to add DNS to host etworksetup -setdnsservers Ethernet 8.8.8.8

also tried to add emulator-options: -dns-server 8.8.8.8

but nothing helped

my configuration - macOs latest ` - name: Check connection on emulator

    uses: reactivecircus/android-emulator-runner@v2

    with:

      api-level: 31

      arch: x86_64

      profile: Nexus 6

      avd-name: ${{ steps.device.outputs.AVD_NAME }}

      force-avd-creation: false

      disable-animations: true

      emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none

      script: adb shell ping -c 4 8.8.8.8

`

ShadyH20 commented 8 months ago

Same for me. Have you found a solution yet?

JoshLudahl commented 8 months ago

No. I ended up disabling the CI and just run the tests locally. Unfortunately, it's not useful at this point.

On Mon, Jan 22, 2024, 9:20 AM Shady Hani @.***> wrote:

Same for me. Have you found a solution yet?

— Reply to this email directly, view it on GitHub https://github.com/ReactiveCircus/android-emulator-runner/issues/348#issuecomment-1904462033, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADGMW7VKZSQQ2CT4RRGILQ3YP2NXDAVCNFSM6AAAAAA4QXIPI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBUGQ3DEMBTGM . You are receiving this because you authored the thread.Message ID: @.***>

gcohen-dev commented 7 months ago

This is happening on macOS and Ubuntu, any workaround?