【问题标题】:Gradle sync failed: Could not determine artifacts for com.android.support:recyclerview-v7:24.0.0Gradle 同步失败:无法确定 com.android.support:recyclerview-v7:24.0.0 的工件
【发布时间】:2016-07-08 06:35:49
【问题描述】:

我无法sync 我的build.gradle 显示以下错误

Gradle 同步失败:无法确定工件 com.android.support:recyclerview-v7:24.0.0:没有缓存版本 可用于离线模式

【问题讨论】:

  • 发布您的 bulid.gradle 代码。
  • 首先Clean-rebuild你的项目&你可以使用compile 'com.android.support:recyclerview-v7:23.0.0'。请出示您的build.gradle

标签: android synchronization build.gradle


【解决方案1】:

用这种方式解决这个问题。

  1. 在 Android Studio 中取消选中 Offline work

    往这边走

    File->Settings->Build, Execution, Deployment->Build tools->Gradle.

  2. Resync 项目,通过重启 Android Studio。

  3. 同步后,您可以再次选中该选项以脱机工作。

【讨论】:

    【解决方案2】:

    Setting->Build,Execution,Deployment->Build tools->gradle,禁用离线工作,然后点击ok。

    【讨论】:

    • 我做到了,但仍然显示错误无法解决:com.android.support:recyclerview-v7:24.0.0
    猜你喜欢
    • 2019-08-29
    • 1970-01-01
    • 2016-07-01
    • 1970-01-01
    • 1970-01-01
    • 2015-05-30
    • 1970-01-01
    • 2019-03-01
    相关资源
    最近更新 更多