loki
loki copied to clipboard
🐛 Unable to find adb. [Android]
Describe the bug
When testing the official Loki react-native example on an Android device, the tests fail. It actually runs the tests on the Android device but unfortunately throws Unable to find adb.
yarn run v1.22.10
$ P:\ReactNative\dev\loki-playground\examples\react-native\node_modules\.bin\loki update
loki update v0.27.0
FAIL android.emulator/android.pixel/Welcome
to Storybook
Unable to find adb.
FAIL android.emulator/android.pixel/Button
with text
Unable to find adb.
with some emoji
Unable to find adb.
FAIL android.emulator/android.pixel/Asynchronous Render
Logo without delay
Unable to find adb.
Logo with 1s delay
Operation timed out after 30000ms
FAIL android.emulator/android.pixel/Asynchronous Render
Logo without delay
Unable to find adb.
Logo with 1s delay
Operation timed out after 30000ms
createAsyncCallback with 1s delay
Unable to find adb.
FAIL android.emulator/android.pixel/Asynchronous Render
Logo without delay
Unable to find adb.
Logo with 1s delay
Operation timed out after 30000ms
createAsyncCallback with 1s delay
Unable to find adb.
add.async() with 1s delay
Unable to find adb.
FAIL android.emulator/android.pixel/Error Handling
with console.warn
Unable to find adb.
FAIL android.emulator
Some visual tests failed to run
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
To Reproduce
- [x] I have tested this issue on the latest Loki release and it still reproduces
Steps to reproduce:
- Clone Loki latest react-native example https://github.com/oblador/loki/tree/master/examples/react-native
- Remove ios simulator to run only on Android from your package.json as follows
"loki": {
"configurations": {
- "ios.iphone7": {
- "target": "ios.simulator"
- },
"android.pixel": {
"target": "android.emulator"
}
}
}
Expected behavior
- I expected the default React Native example to run successfully on Android Pixel 2
Environment (please complete the following information):
- Loki: 0.28.1(latest)
- React Native: 0.63.4
- Node: 14.15.4
- Device: Pixel_2_API_30
- OS: Windows 10, 64 bits, 16 GB RAM. Intel i7
Thanks!