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

Gradle Debug构建突发失败:无法获取依赖包求解决方案

Gradle构建失败:无法找到com.linkedin.dexmaker:dexmaker-mockito:2.25.0等依赖

直至前天项目构建一切正常,昨晚清理Gradle与Android Studio缓存后,App构建无法完成,Gradle报出依赖找不到的错误,类似问题还有很多。更换移动热点网络后问题依旧,无法生成Debug/Release包,严重影响开发进度。

Gradle报错内容:

FAILURE: Build completed with 9 failures. 1: Task failed with an exception.
> Could not find com.linkedin.dexmaker:dexmaker-mockito:2.25.0. Searched in the following locations:
  - https://repo.maven.apache.org/maven2/com/linkedin/dexmaker/dexmaker-mockito/2.25.0/dexmaker-mockito-2.25.0.pom
  - https://dl.google.com/dl/android/maven2/com/linkedin/dexmaker/dexmaker-mockito/2.25.0/dexmaker-mockito-2.25.0.pom
  - https://jitpack.io/com/linkedin/dexmaker/dexmaker-mockito/2.25.0/dexmaker-mockito-2.25.0.pom
  - https://clojars.org/repo/com/linkedin/dexmaker/dexmaker-mockito/2.25.0/dexmaker-mockito-2.25.0.pom
  - https://oss.sonatype.org/content/repositories/ksoap2-android-releases/com/linkedin/dexmaker/dexmaker-mockito/2.25.0/dexmaker-mockito-2.25.0.pom
  - https://maven.google.com/com/linkedin/dexmaker/dexmaker-mockito/2.25.0/dexmaker-mockito-2.25.0.pom

点击上述仓库链接均无法访问,该依赖的官方仓库为LinkedIn dexmaker项目。

构建输出截图:
构建输出截图

无法确定是Maven、Jitpack等仓库故障还是其他原因,想问是否有其他开发者遇到过此类问题?

使用工具:Android Studio Koala,Gradle 7.5

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.19 12:50:14