Android测试编排器:com.Android.ddmlib.InstallException:-26



当启动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之后开始发生的。

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

adb uninstall androidx.test.services

然后你需要确保你使用的是最新版本的androidx测试。

请参阅以下说明以设置最新版本的Android Test Orchestrator。https://developer.android.com/training/testing/junit-runner#using-安卓测试协调器

相关内容

最新更新