Skip to content
Advertisement

Android Studio 4.1 Stuck at loading screen in Mac

My Android Studio has been stuck at loading screen since yesterday. X_X

enter image description here

What I have tried:

  1. Restarting computer.
  2. Clearing junk files and logs.
  3. Completely uninstall and then Reinstalling AndroidStudio.
  4. Followed many different solutions (e.g: one of it is here). But still doesn’t work. Excerpt from the solution:
  • Open file Android Studio setup directory/bin/idea.properties
  • Add disable.android.first.run=true to end
  • Restart Android Studio
  1. When I deleted the SDK it worked, but then after I let it download the SDK again, it opens for that session, then stuck again on the next session.

Well, I don’t want to always delete and re-download the SDK every time I open Android Studio. So does anyone have any solution to this?

Thanks

More Info:

JavaScript

My jave -version

JavaScript

My /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version

JavaScript

My studio.vmoption:

JavaScript

My idea.properties:

JavaScript

Advertisement

Answer

This works for me somehow:

  1. I managed to get it open first by tricking it (deleting SDK and re-downloading it as I have stated in the question).
  2. Go to Help => Change memory settings. Then change the Maximum Heap Size to 4096
  3. Press Save and Restart

I don’t know why it works and whats the cause of my problem. But this is a quick fix. If anybody knows, please enlighten me.

Thanks

Update: I fixed the problem. It seems that it it was caused by plugins or sdk problem. In my case it was the Flutter package. Probably or somehow the installation on my machine had a problem and possibly Android studio tried to load it and got stuck. Somehow switching channels and doing flutter upgrade then reinstalling flutter plugins. Solved it for me. So probably just a pointer: see if there is any sdk / plugins installation problem

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement