Disable animations programmatically during instrumented tests // Android Dev Diary

When running an instrumented Android test, or “androidTest”, and you encounter the following error:

It means that you need to disable animations for it to successfully run the test.

But, it can take a lot of clicks on the emulator/device screen to get to the developer settings to turn off animations!

So, for a quicker way to disable animations in the Android device during development, just enter the following commands in your Android Studio terminal:

Related Posts:

Posts that may be related to "Disable animations programmatically during instrumented tests // Android Dev Diary":

Catzie

An odd human being who happens to have a variety of ever-changing interests, but right now they are programming, making up silly song/rap lyrics, K-pop, drawing, creating unique dessert/drink flavors, obsessing about finding out how some things works, automation, anime, video games... Ran online dessert shops Cookies PH and Catzie's Cakery in her past life.

Leave a Reply

Your email address will not be published. Required fields are marked *