0

I was working on android studio and it was working fine until i tried to update the packages from the sdk manager and it didnt get completed (reached almost 75% and then stopped possibly due to weak network connection). Now when i try to open android studio it shows a dialog box titled start failed java.lang.runtimeexception and a lot more codes written in it... tried everything, installing the latest version of android studio from google's site. NOT worked ! still the same problem.. tried to change the idea.properties file.. DIDNT WORKED TOO!! closed my internet connection... same thing occured.. Seriously looking for a solution....

rishi singh
  • 11
  • 1
  • 2

2 Answers2

1

it took me a whole day to solve this issue... @Toris was right.. Delete the broken packages from the sdk manager or clear the TEMP folder under USER/AppData/Local/Android/sdk directory... THANKS AGAIN @Toris

rishi singh
  • 11
  • 1
  • 2
  • NB: 1.Clearing temp folder recovers SDK download problem. (If it is filled up, download stops, and often leaves broken packages.) 2.Broken packages may prevent booting Android Studio. – Toris Oct 21 '16 at 19:34
0

If someone having this same problem then what you can do is: Go to help and Check for updates then download the patch and restart your IDE.

Problem was plugins and with the update you will see this:

enter image description here

This means that your plugins are becoming compatible with the latest version.

Other options:

  1. Invalidate caches and restart
  2. Sync with gradle files
  3. Rename the marketPlace folder [C:\Users\USERNAME.AndroidStudio4.0\config\plugins]
Dharman
  • 30,962
  • 25
  • 85
  • 135
Vijay
  • 1,163
  • 8
  • 22