Open hborders opened 1 year ago
I filed a similar issue with the cast team: https://issuetracker.google.com/issues/285919735
I think the root cause here is that com.google.android.apps.common.testing.accessibility.framework:accessibility-test-framework
should not depend on protobuf-lite
because protobuf-lite
doesn't guarantee binary compatibility across releases, so any app that uses a different protobuf-lite
version (or protobuf-java
) might have problems because of this dependency.
Description
My Android app depends on
protobuf-java:3.17.2
, and usesespresso:3.5.1
for UI testing.espresso-contrib:3.5.1
depends oncom.google.android.apps.common.testing.accessibility.framework:accessibility-test-framework:3.1.2
depends oncom.google.protobuf:protobuf-lite:3.0.1
When I try to run my UI tests, my app immediate crashes with:
If I remove this dependency with gradle, things seem to work fine:
Steps to Reproduce
Create a project that uses
play-services-cast:21.3.0
andprotobuf-java:3.21.12
. Then try to run a UI test withespresso-contrib:3.5.1
Expected Results
UI Tests run
Actual Results
App immediately crashes with the above stack trace
AndroidX Test and Android OS Versions
Android API 33. Espresso
3.5.1
Link to a public git repo demonstrating the problem: