title: Gradle Project Sync failed in Android Studio 2.3.1
body: <p>Upon reopening Android Studio after an improper shutdown, my gradle project sync failed and many errors like: "Failed to resolve: junit:junit:4.12" started showing up in the Event Log. Screenshot is given below.</p>
  
  <p><img src="https://i.stack.imgur.com/vZXW4.png" alt="screenshot"></p>
  
  <p>I tried the following things to no avail:</p>
  
  <ul>
  <li>Updated Android Studio to ver 2.3.1 and thus also the Gradle</li>
  <li>I also had error for "Plugin Error: required plugin "xyz" is disabled" so i deselected all the plugins showing errors from settings and reselected them which removed the error.</li>
  <li>Then i went to Files -> Invalidate caches/restart</li>
  </ul>
  
  <p>What should i do?</p>
  
  <p>UPDATE: After clicking on "Disable offline mode and sync project", this is what happened.</p>
  
  <p><img src="https://i.stack.imgur.com/GuQz5.png" alt="screenshot 2"></p>
  
  <hr>