Gradle sync failed: Could not determine artifacts for com.android.support:recyclerview-v7:24.0.0
Asked Answered
D

2

8

I am unable to sync my build.gradle the below error is showing

Gradle sync failed: Could not determine artifacts for com.android.support:recyclerview-v7:24.0.0: No cached version available for offline mode

Discriminant answered 8/7, 2016 at 6:35 Comment(2)
post your bulid.gradle code .Incensory
At first Clean-rebuild your project & you can use compile 'com.android.support:recyclerview-v7:23.0.0' . Please show your build.gradleWherefrom
C
9

To solve this use this way.

  1. Uncheck Offline work in Android Studio

    go this way

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

  2. Resync the project, by restarting the Android Studio.

  3. Once synced, you can check the option again to work offline.

Cerulean answered 8/7, 2016 at 6:43 Comment(0)
B
0

Setting->Build,Execution,Deployment->Build tools->gradle, disable offline work, click ok then.

Bennir answered 8/7, 2016 at 6:43 Comment(1)
i did it but still showing an error Failed to resolve:com.android.support:recyclerview-v7:24.0.0Discriminant

© 2022 - 2024 — McMap. All rights reserved.