title: How to resolve Cannot load project: java.lang.RuntimeException: java.io.EOFException while opening previous projects
body: <p><strong>Is anyone familiar with this error when loading the previous project</strong></p>
  
  <p><a href="https://i.stack.imgur.com/oPejb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oPejb.png" alt="error dialog"></a></p>
  
  <p>I am searching for a better solution to <strong>re-open</strong> the project instead of copying codes of each class.</p>
  
  <p>I tried importing the same project but It's still showing this error in Event Log</p>
  
  <pre><code>10:35:05 AM Gradle sync started
  10:35:29 AM Gradle sync failed: java.io.EOFException
  10:35:29 AM Gradle sync completed
  10:35:29 AM RuntimeException: Failed to set up Android modules in project 'MyProject': java.io.EOFException
  </code></pre>
  
  <p><em>I have tried opening and importing project with Internet connection and in offline mode too. But same issue raised.</em></p>