【问题标题】:In which AndroidX library is the androidx.test.annotation package located?androidx.test.annotation 包位于哪个 AndroidX 库中?
【发布时间】:2019-10-21 10:58:22
【问题描述】:

简单的问题:

如何使用 androidx.test.annotation 包?它位于哪个 AndroidX 库中?我特别想使用androidx.test.annotation.UiThreadTest。这个注解是 android.support.test.annotation.UiThreadTest 从 pre-AndroidX 时代的延续。

此软件包未列在AndroidX Migrate 页面上。它是否包含在另一个库中?如果有,是哪一个?我一辈子都找不到它。 IDE 中的包搜索一无所获。

【问题讨论】:

    标签: android android-support-library androidx androidx-test


    【解决方案1】:

    androidx.test:rules:

    androidTestImplementation 'androidx.test:rules:1.2.0'
    

    【讨论】:

    • 优秀。谢谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-01-16
    • 2021-11-09
    • 2019-03-06
    • 1970-01-01
    • 2016-06-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多