【问题标题】:FAILURE: Build failed with an exception(Could not resolve all files for configuration ':app:lintClassPath'.)FAILURE:构建失败并出现异常(无法解析配置“:app:lintClassPath”的所有文件。)
【发布时间】:2019-09-17 16:37:13
【问题描述】:

我有这个错误:

FAILURE:构建失败并出现异常。

出了什么问题:

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

我该如何解决?

【问题讨论】:

    标签: java android performance android-studio compiler-errors


    【解决方案1】:

    您好像启用了离线模式:

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

    【讨论】:

      猜你喜欢
      • 2021-12-25
      • 2018-07-28
      • 2018-10-22
      • 1970-01-01
      • 2018-10-29
      • 2020-06-13
      • 2021-09-24
      • 2016-05-18
      相关资源
      最近更新 更多