gpt4 book ai didi

android-gradle-plugin - 仅测试模块中的等效 androidTestUtil 是什么

转载 作者:行者123 更新时间:2023-12-04 17:39:10 26 4
gpt4 key购买 nike

最初我在我的应用模块中使用 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 Test Orchestrator not working with Android X

关于android-gradle-plugin - 仅测试模块中的等效 androidTestUtil 是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55349636/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com