You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Android 插桩测试任务执行失败::app:connectedDebugAndroidTest 报错求助

Android 插桩测试任务执行失败::app:connectedDebugAndroidTest 报错求助

各位好,我最近在运行Android插桩测试的时候卡壳了,试了好几种排查方法都没搞定,想请大家帮我分析下问题出在哪,或者给点下一步的排查方向,感激不尽!

我遇到的具体报错信息如下:

[Incubating] Problems report is available at: file:///D:/Desktop/software/Kotlin/NoteApp/build/reports/problems/problems-report.html
Execution failed for task ':app:connectedDebugAndroidTest'.
> There were failing tests. See the report at: file:///D:/Desktop/software/Kotlin/NoteApp/app/build/reports/androidTests/connected/debug/index.html

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 7s
75 actionable tasks: 1 executed, 74 up-to-date

我已经尝试过以下几种解决办法,但都没起作用:

  • 清理项目(执行Clean Project操作)
  • 重启模拟器
  • 关闭Windows Defender
  • 检查测试配置项

目前实在没头绪了,麻烦大家帮忙看看我还能排查哪些点,或者这个报错背后可能藏着什么问题?谢谢大家!

内容来源于stack exchange

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.07 10:58:52