Oliver Metz
Oliver Metz

Reputation: 3748

Update Google Play services notification making tests fail on Firebase Test Lab devices

When running an Espresso test in Firebase Test Labs I sometimes get this notification showing that the Google Play services need to be updated.

enter image description here

This results in some failing tests because some tests try to click elements below this notification. Are there any easy solutions for this?

Upvotes: 2

Views: 202

Answers (1)

Maik
Maik

Reputation: 3539

This notification can be displayed on devices when the version of the Play Store app is older than the version of the Play Services library that your app is using.

The best way to fix this is not to depend on the latest versions of the library, but rather use an older one if possible.

Upvotes: 1

Related Questions