2

启动 androidConnectTests 时,我收到一个错误:

caused by: com.android.ddmlib.InstallException: -26 Package androidx.test.services new target SDK 14 doesn't support runtime permissions and old target does 

这在启用 Android Test Orchestrator 后开始发生。

4

1 回答 1

2

您需要卸载任何旧版本的androidx.test.services

adb uninstall androidx.test.services

然后你需要确保你使用的是最新版本的 androidx-test

请参阅这些说明以设置最新版本的 Android Test Orchestrator。 https://developer.android.com/training/testing/junit-runner#using-android-test-orchestrator

于 2020-10-13T05:08:59.793 回答