How to resolve Cannot load project: java.lang.RuntimeException: java.io.EOFException while opening previous projects

11,708

Solution 1

Go to the C:\Program Files\Android\Android Studio\bin folder. Edit the file idea.properties, then add the line:

disable.android.first.run=true

and restart android.

Solution 2

Go to the C:\Program Files\Android\Android Studio\bin folder. Edit the file idea.properties, then add the line:

disable.android.first.run=true as the last line of your file. If any error occur then try running opening the file in editor in admin mode.

and restart android.

Share:
11,708
Shree Krishna
Author by

Shree Krishna

Every one of us knows Time is assets for (Programmers). I would be happy to help whenever possible. Feel free to mention me. I believe “Thank you, it works now!” is much more rewarding than any number of reputations, Get help and help others, Stay united. Contact Me E-mail : [email protected] / [email protected] LinkedIn https://www.linkedin.com/in/shreekrishnaban/

Updated on June 26, 2022

Comments

  • Shree Krishna
    Shree Krishna almost 2 years

    Is anyone familiar with this error when loading the previous project

    error dialog

    I am searching for a better solution to re-open the project instead of copying codes of each class.

    I tried importing the same project but It's still showing this error in Event Log

    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
    

    I have tried opening and importing project with Internet connection and in offline mode too. But same issue raised.

  • Shree Krishna
    Shree Krishna about 8 years
    bro I am unable to open even a gradle file. When I clicked in it it shows RuntimeException: Error building initial foldings: java.util.zip.ZipException: incorrect header check
  • CandleCoder
    CandleCoder about 8 years
    Go through this question stackoverflow.com/questions/16586674/…
  • Shree Krishna
    Shree Krishna about 8 years
    I appreciate your suggestion but that is really a different issue. That didn't solve.
  • jack jay
    jack jay almost 7 years
    It just saved me today. Thanks