AzimoLabs / fastlane-plugin-automated-test-emulator-run

Plugin dedicated for Android platform. Wraps gradle task/shell command used for launching instrumented tests. Provides start of as many AVDs with various configs as needed before test run, waits for boot, kills emulators and deletes them from hdd after tests are finished or disturbed.
MIT License
113 stars 48 forks source link

Empty list of attached devices #12

Closed githinho closed 7 years ago

githinho commented 7 years ago

I have a problem with plugin, list of attached devices are always empty but it seems that the device is created.

` [16:59:03]: Re-creating new AVD.

[16:59:03]: $ echo "no" | /usr/local/Caskroom/android-sdk/25.2.3/tools/bin/avdmanager create avd --name "TestAvdList" --package "system-images;android-23;google_apis;x86" --tag google_apis --abi x86 

[16:59:44]: ▸ Do you wish to create a custom hardware profile? [no]

[16:59:44]: Restarting adb

[16:59:44]: $ /usr/local/Caskroom/android-sdk/25.2.3/platform-tools/adb kill-server

[16:59:44]: ▸  server not running 

[16:59:44]: $ /usr/local/Caskroom/android-sdk/25.2.3/platform-tools/adb start-server

[16:59:48]: ▸  daemon not running. starting it now at tcp:5037 

[16:59:48]: ▸  daemon started successfully 

[16:59:48]: Attemting to apply custom config to TestAvdList

[16:59:48]: No config file found for AVD 'TestAvdList'. AVD won't have config.ini applied.

[16:59:48]: Launching all AVDs at the same time.

[16:59:48]: Waiting for AVDs to finish booting.

[16:59:48]: Performig wait for ADB boot

[16:59:48]: $ /usr/local/Caskroom/android-sdk/25.2.3/emulator/emulator -port 5556 -avd TestAvdList &>/var/folders/n3/kxvcvj0d7d52dds2jtm_mxs4000086/T/emulator_output20170612-2178-18zme14&

[16:59:58]: $ /usr/local/Caskroom/android-sdk/25.2.3/platform-tools/adb devices

[16:59:58]: ▸ List of devices attached

[17:00:08]: $ /usr/local/Caskroom/android-sdk/25.2.3/platform-tools/adb devices

[17:00:08]: ▸ List of devices attached `

githinho commented 7 years ago

After running a command, device isn't running. /usr/local/Caskroom/android-sdk/25.2.3/emulator/emulator -port 5556 -avd TestAvdList because of the error: Segmentation fault: 11

Did anyone had a similar issue?

FisherKK commented 7 years ago

Hello,

When plugin is scanning your PC for visible devices - try open terminal and type adb devices is response empty too at that time?

Second error is weird. I haven't seen it. Try upgrading your SDK to something similar to this: screen shot 2017-06-13 at 11 09 21

Beware Android Emulator ver higher than 26.03 and Android SDK Platform-Tools higher than 25.0.6 - it's bugged atm.

githinho commented 7 years ago

Thank you for the response. The list is also empty when I try adb code so the problem is not in the plugin.

sparkleci commented 6 years ago

I'm having the same problem about the empty list of attached devices. Do you know how to handle it?