Running Espresso in local emulator

31 views
Skip to first unread message

Farees Hussain Syed

unread,
Feb 22, 2021, 3:11:22 PM2/22/21
to bazel-discuss
Hello everyone, 
I've encountered a error when i Run the BasicSample app to test UIAutomator and Espresso with Bazel but when i run the command
`bazel test //ui/uiautomator/BasicSample:BasicSampleInstrumentationTest_23_x86 --config=local_device`

I get a error that 
```
ERROR: /home/farees/.cache/bazel/_bazel_farees/81f7829096d080d396d38b30cf582388/external/androidsdk/BUILD.bazel:78:32: Executing genrule @androidsdk//:emulator_images_android_23_x86 failed (Exit 1): bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
This rule requires that the Android SDK used by Bazel has the following system image installed: emulator_images_android_23_x86. Please install this system image through the Android SDK Manager and try again.
Target //ui/uiautomator/BasicSample:BasicSampleInstrumentationTest_23_x86 failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1.060s, Critical Path: 0.43s
INFO: 7 processes: 7 internal.
FAILED: Build did NOT complete successfully
//ui/uiautomator/BasicSample:BasicSampleInstrumentationTest_23_x86 FAILED TO BUILD

```

I've installed everything related to API level 23 but yet I get the error 
How do I fix this?

Thanks,
Farees.
Reply all
Reply to author
Forward
0 new messages