android-gradle-plugin - 什么是仅测试模块中的等效 androidTestUtil
问题描述
最初,我在我的应用模块中使用 Android Test Orchestrator。所以我的 build.gradle 文件中有这一行:
dependencies {
androidTestUtil "androidx.test:orchestrator...`
...
}
但是,我现在正在转向仅测试模块。所有的androidTestImplementation
关键字都变成了just implementation
。但是我该怎么办androidTestUtil
?它应该变得公正util
吗?
解决方案
根据 Android 的文档,它仍然应该是:
androidTestUtil 'androidx.test:orchestrator:xxx'
只要确保你更新
testOptions {
execution 'ANDROID_TEST_ORCHESTRATOR'
}
至
testOptions {
execution 'ANDROIDX_TEST_ORCHESTRATOR'
}
推荐阅读
- angular - 将下拉数组从角度材料表导出到 csv
- excel - 想要将电子表格中的值添加到我的代码使用的 url 中 - 节点
- regex - 从文件名中减去 1 的正则表达式
- next.js - Nextjs:由 Prismjs 不匹配突出显示的服务器渲染代码块,并由于类属性上的前导空格导致重新渲染
- python - 如何交换数组中的所有行
- javascript - 我无法让节点 js 中的快速路由器工作
- javascript - 为什么我在 discord.js 中收到客户端错误
- php - 收到 ' 字符时,如何避免我的查询分裂?
- dataframe - 如何有效地从 S3 存储桶中过滤数据帧
- c++ - 转换为对没有其他数据成员的基类的引用?