Kiryl Ivanou
Kiryl Ivanou

Reputation: 1043

Android Studio freezes on "Initializing ADB..."

Android Studio can freeze at any moment. And every time afer re-starting it again freezes on "Initializing ADB...". Only re-starting of PC helps to solve the problem. I have 8GB RAM.

I increased size of memory in 4 times in studio64.exe.vmoptions but it didn't help:

-Xms512m
-Xmx2560m
-XX:MaxPermSize=1400m
-XX:ReservedCodeCacheSize=900m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Djna.nosys=true
-Djna.boot.library.path=

-Djna.debug_load=true
-Djna.debug_load.jna=true
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Didea.paths.selector=AndroidStudio1.3
-Didea.platform.prefix=AndroidStudio

enter image description here

Thank you very much!

Upvotes: 15

Views: 13567

Answers (4)

Akshay Kumar Tomar
Akshay Kumar Tomar

Reputation: 1

I have been facing it. Sometimes the IDE fails to access the folder ADB is contained in. Try running the application as an administrator.

Upvotes: 0

mehmoodnisar125
mehmoodnisar125

Reputation: 1527

I was also facing this issue.

I just resolve this issue by restarting Android Studio.

Upvotes: 4

xingjiu
xingjiu

Reputation: 389

Reconnect and restart adb-server does not help.

My fault is deleted the localhost config in /etc/hosts.

127.0.0.1 localhost

after adding this line to /etc/hosts, everything works fine.

Note that maybe you have installed some hosts auto config software. Just make sure ping localhost in the terminal and see 127.0.0.1 on screen.

Upvotes: 4

Arun Shankar
Arun Shankar

Reputation: 2295

Disconnect the device that is connect. And then the Initializing would stop. And then you can reconnect the device. Works for me every single time

Upvotes: 36

Related Questions