gpt4 book ai didi

java - 失败 : Build failed with an exception(Could not resolve all files for configuration ':app:lintClassPath' . )

转载 作者:行者123 更新时间:2023-11-30 10:00:28 28 4
gpt4 key购买 nike

我有这个错误:

FAILURE: Build failed with an exception.

出了什么问题:

任务“: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.

我该如何解决?

最佳答案

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

enter image description here

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

关于java - 失败 : Build failed with an exception(Could not resolve all files for configuration ':app:lintClassPath' . ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57978564/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com