最初我在我的应用模块中使用 Android Test Orchestrator。所以我的 build.gradle 文件中有这一行:
dependencies {
androidTestUtil "androidx.test:orchestrator...`
...
}
但是我现在要转到 test-only module .所有 androidTestImplementation
关键字都变成了 implementation
。但是我应该为 androidTestUtil
做什么呢?它应该变成 util
吗?
最佳答案
根据 Android 的 documentation它仍然应该是:
androidTestUtil 'androidx.test:orchestrator:x.x.x'
只要确保你更新
testOptions {
execution 'ANDROID_TEST_ORCHESTRATOR'
}
到
testOptions {
execution 'ANDROIDX_TEST_ORCHESTRATOR'
}
关于android-gradle-plugin - 仅测试模块中的等效 androidTestUtil 是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55349636/