在26岁以下的Android中运行Junit 5

时间:2019-05-20 12:43:01

标签: java android unit-testing junit junit5

我可以在Android Studio中将Junit 5用于26以下的移动设备(例如API 17)吗?

我有这个错误

Manifest merger failed : uses-sdk:minSdkVersion 17 cannot be smaller than version 26 declared in library [de.mannodermaus.junit5:android-instrumentation-test:0.2.2] /Users/Sky/.gradle/caches/transforms-2/files-2.1/9ce97b414b7465905d28b55ba9ec03f0/AndroidManifest.xml as the library might be using APIs not available in 17
    Suggestion: use a compatible library with a minSdk of at most 17,
        or increase this project's minSdk version to at least 26,
        or use tools:overrideLibrary="de.mannodermaus.junit5" to force usage (may lead to runtime failures)

0 个答案:

没有答案