Android Studio 2.3.3 stucks when first run Android Studio 2.3.3 stucks when first run linux linux

Android Studio 2.3.3 stucks when first run


Try attaching to the process with strace to see what it's doing (for example, waiting on a network or file). Or run it with strace like this:

strace -o foo.log -s1024 -f ./studio.sh

After a while, break it with Ctrl-C and examine the log file for syscalls like open, read, recvmsg.

Alternatively, while it's running, you can attach with a Java profiler to the jvm. For a start, you can launch jconsole or jvisualvm and attach to the Android Studio (it will show as an empty name, with only PID) and view stack traces of individual threads. In jvisualvm you can view the CPU usage sample and click on the hot event and see the stack trace.

Basically you need to find out what the app is trying to access for so long. Most likely some network resource.


I took some information from:

The answers collectively say that:

Android Studio will run fine without repositories.cfg.

You can remove this warning by putting the following into repositories.cfg:

### User Sources for Android SDK Managercount=0

After waiting some time it eventually goes beyond that step.

Patience is the key.

So, try waiting a little bit more. It always helps.


This is common. On your first run the gradle files are needed to be downloaded and installed in background. It's about 90 MB in size and even if your internet speed is high, the gradle servers may be slow taking it to maximum of 1 or 2 hours in the worst case. So open Android Studio and wait until it opens. Hope it helps.