Gradle sync failed: Could not determine artifacts for com.android.support:recyclerview-v7:24.0.0
<p>I am unable to <code>sync</code> my <code>build.gradle</code> the below error is showing</p>

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