Espresso testing disable animation
Make sure to keep your plugin updated: buildscript { repositories { google() gradlePluginPortal() } dependencies { classpath ‘com.android.tools.build:gradle:3.3.0’ } } Use the new flag in testOptions called animationsDisabled: android { … testOptions { animationsDisabled = true } } Source: https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.TestOptions.html#com.android.build.gradle.internal.dsl.TestOptions:animationsDisabled You can try turning off animations on your device/emulator manually: To avoid flakiness, we highly … Read more