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

Flutter运行Gradle任务assembleDebug失败 无法解析:app:debugCompileClasspath依赖

错误:构建过程发生异常失败
  • 问题原因:任务:app:compileDebugKotlin执行失败

无法解析配置项:app:debugCompileClasspath的所有构件:
未找到lifecycle-common-java8-2.2.0.jar (androidx.lifecycle:lifecycle-common-java8:2.2.0),已在谷歌Maven仓库对应路径搜索
未找到lifecycle-common-2.2.0.jar (androidx.lifecycle:lifecycle-common:2.2.0),已在谷歌Maven仓库对应路径搜索
未找到core-common-2.1.0.jar (androidx.arch.core:core-common:2.1.0),已在谷歌Maven仓库对应路径搜索
未找到collection-1.1.0.jar (androidx.collection:collection:1.1.0),已在谷歌Maven仓库对应路径搜索
未找到annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0),已在谷歌Maven仓库对应路径搜索

  • 建议排查方案:
    添加--stacktrace参数运行以获取堆栈跟踪,添加--info或--debug参数运行以获取更多日志输出,添加--scan参数运行以获取完整洞察。
    目标构件已在谷歌Maven仓库对应路径搜索。
  • 建议排查方案:
    添加--stacktrace参数运行以获取堆栈跟踪,添加--info或--debug参数运行以获取更多日志输出,添加--scan参数运行以获取完整洞察。

构建在22秒后失败
正在运行Gradle任务assembleDebug... 25.2秒
异常:Gradle任务assembleDebug执行失败,退出码为1

构建在22秒后失败
正在运行Gradle任务assembleDebug... 25.2秒
异常:Gradle任务assembleDebug执行失败,退出码为1


内容的提问来源于stack exchange,提问作者gh3zelii

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.10.04 10:45:02