Reputation: 97
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
Upvotes: 8
Views: 13601
Reputation: 346
Setting->Build,Execution,Deployment->Build tools->gradle, disable offline work, click ok then.
Upvotes: 0
Reputation: 20950
To solve this use this way.
Uncheck Offline work
in Android Studio
go this way
File
->Settings
->Build, Execution, Deployment
->Build tools->Gradle
.
Resync
the project, by restarting the Android Studio.
Once synced, you can check the option again to work offline.
Upvotes: 9