2

Simple question:

How can I use the androidx.test.annotation package? In which AndroidX library is it located? I'm specifically looking to use androidx.test.annotation.UiThreadTest. This annotation is the continuation of android.support.test.annotation.UiThreadTest from pre-AndroidX times.

This package is not listed on the AndroidX Migrate page. Is it included in another library? If so, which one? I cannot find it for the life of me. Package search within the IDE comes up with nothing.

user2988
  • 95
  • 1
  • 7

1 Answers1

3

It is in androidx.test:rules:

androidTestImplementation 'androidx.test:rules:1.2.0'
CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491