3

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
  • 8,474
  • 6
  • 40
  • 68

3 Answers3

12

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.

jmattheis
  • 10,494
  • 11
  • 46
  • 58
Lino
  • 121
  • 1
  • 3
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.

FelixSFD
  • 6,052
  • 10
  • 43
  • 117
Rishab Jain
  • 269
  • 4
  • 16
0

Most probably you are using previous versions of Gradle update it with

classpath 'com.android.tools.build:gradle:1.5.0' at your project level build.gradle & also check your Internet connection which causes blockage in downloading the required Jar's/Dependencies.

CandleCoder
  • 1,387
  • 4
  • 21
  • 45
  • 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` – Shree Krishna Feb 25 '16 at 05:13
  • Go through this question http://stackoverflow.com/questions/16586674/failed-to-import-new-gradle-project-in-android-studio – CandleCoder Feb 25 '16 at 05:15
  • 1
    I appreciate your suggestion but that is really a different issue. That didn't solve. – Shree Krishna Feb 25 '16 at 05:20