为了账号安全,请及时绑定邮箱和手机立即绑定

失败:构建失败并出现异常(无法解析配置“:app:lintClassPath”的所有文件。)

失败:构建失败并出现异常(无法解析配置“:app:lintClassPath”的所有文件。)

慕的地6264312 2023-08-04 15:15:25
我有这个错误:失败:构建失败并出现异常。什么地方出了错:任务“:app:lintVitalFreeRelease”执行失败。> Could not resolve all files for configuration ':app:lintClassPath'.> Could not download lint-kotlin.jar (com.android.tools.lint:lint-kotlin:26.2.1): No cached version available for offline mode> Could not download intellij-core.jar (com.android.tools.external.com-intellij:intellij-core:26.2.1): No cached version available for offline mode> Could not download uast.jar (com.android.tools.external.org-jetbrains:uast:26.2.1): No cached version available for offline mode> Could not download groovy-all.jar (org.codehaus.groovy:groovy-all:2.4.12): No cached version available for offline mode> Could not download kotlin-compiler.jar (com.android.tools.external.com-intellij:kotlin-compiler:26.2.1): No cached version available for offline mode> Could not download error_prone_annotations.jar (com.google.errorprone:error_prone_annotations:2.0.18): No cached version available for offline mode* 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.我该如何解决?
查看完整描述

1 回答

?
慕容3067478

TA贡献1773条经验 获得超3个赞

看起来您已启用离线模式:


https://img1.sycdn.imooc.com//64cca5b300018fad04120218.jpg

请尝试取消选中“设置”下的“离线工作”,同步 gradle,然后重试。



查看完整回答
反对 回复 2023-08-04
  • 1 回答
  • 0 关注
  • 309 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信