Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio keeps Crashing

I recently upgraded from Windows 7 to Windows 10. Ever since I've been using Windows 10, Android Studio has been crashing. It starts and tries loading the project, and then crashes. If I press cancel while it's loading the project, it goes to the new project/open a project start screen. At this point it's stable, so it must be something to do with opening the projects. I know that the projects aren't corrupted because I've made new ones and they crash too. If I look at the bottom right where the loading description is, it works until 'indexing files' ends.

I've scoured the web for hours and hours, but to no avail. I added system variables, I deleted a registry key, I reinstalled the program twice, and I even downgraded to Windows 7 to see if it would work on that OS (it did).

Any help to get it to run would be very much appreciated.

like image 792
Rohan Khajuria Avatar asked Aug 09 '15 23:08

Rohan Khajuria


3 Answers

Run Android Studio "as administrator"

like image 111
Jacob Young Avatar answered Oct 01 '22 23:10

Jacob Young


I will suggest the following solution:

  1. Run your Android Studio 2-3 times, 3rd time is usually the charm :)

If it doesn't work.

  1. Go to your project directory and open CMD in that directory. type in

    run gradlew.bat OR gradlew.bat
    
  2. Let it refresh the gradle files.

  3. Start your android studio

like image 36
Ali Haider Avatar answered Oct 02 '22 01:10

Ali Haider


if you look at the website http://developer.android.com/sdk/index.html it doesn't support windows 10 yet so you might have to downgrade to windows 7 for awhile or wait till they update the software "System Requirements Windows

Microsoft® Windows® 8/7/Vista/2003 (32 or 64-bit) 2 GB RAM minimum, 4 GB RAM recommended"

like image 34
Alexh Avatar answered Oct 02 '22 00:10

Alexh