10

Every time I run Android Studio, this loading screen pops up, but Android Studio stays here and doesn't load. It's like this following picture except that the loading bar is loaded all the way but stuck there. I am running Windows 10.

enter image description here

I have tried many things, including setting the system variables JDK_HOME to where my JDK is located and the same for JAVA_HOME. I have also set a path. I ran as admin many times and let AS through a firewall.

I have also restarted and reinstalled countless times.

The version of AS is 2.0, and I am running the latest versions of Java.

Any help?

Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142
Asparique
  • 123
  • 1
  • 1
  • 6

3 Answers3

17
  • Open file Android Studio setup directory/bin/idea.properties
  • Add disable.android.first.run=true to end
  • Restart Android Studio

PLEASE NOTE: This will break patch updating to the next version. We now check full binary checksums on the whole installation to prevent various install corruption bugs as well as to preserve application signatures. Therefore, make a copy of this file first, and before updating, put it back.

Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142
4

Please try the following method to fix that issue:

  1. Find the folder of your AndroidStudio: based on the following directory

macOS: ~/Library/Application Support/Google/AndroidStudio[version]

  1. Delete the AndroidStudio folder.

  2. Restart

Ref:https://developer.android.com/studio/known-issues#studio-config-directories

0

In order to know how to debug the problem, I executed the bin\studio.bat script in the terminal and inspected the actual Idea exceptions in order to fix the problem.

For me, this was the issue:

ERROR - llij.ide.plugins.PluginManager - java.net.BindException: Address already in use: bind
java.util.concurrent.CompletionException: java.net.BindException: Address already in use: bind

This means the plugin manager is trying to listen on a port that is not available. Is something listening on that port? For me, it was the stupid "excluded ports" by Windows, so I simply stopped the service: net stop winnat (as administrator), and confirmed that Android Studio started to work.

No need to re-install, delete precious configuration (and plugins, etc.). Just read the log provided by the bin\studio.bat script, and I was able to fix the issue.

David Refoua
  • 3,476
  • 3
  • 31
  • 55