I was using AS perfectly without any issues. When I imported a project downloaded via github. And after resolving some build issues I managed to ran the program but it caused problem with AS and I had close it forcefully. When I restarted my AS it pop up firstly with this error.
cannot start internal http server. git integration, javascript debugger and liveedit may operate with errors. please check your firewall settings and restart android studio
Then I googled and found some solutions of which I tried these:
Remove all android related files(SDK, .android folder etc) and reinstall android with no previous settings.
All of these didn't work and another problem came up.
Gradle 'My Aplication' project refresh failed - Error:Protocol family unavailable
For this problem I added following line in my environment variables
_JAVA_OPTIONS = -Djava.net.preferIPv4Stack=true
but this didn't resolved my issue. So I again reinstalled AS from beginning. Now I am having two issues
Gradle 'My Aplication' project refresh failed. <br>
Error:Could not connect to server [ff117fd1-1e60-4433-87c8-b03c2c38eba0 port:55537, addresses:[/127.0.0.1]]. Tried addresses: [/127.0.0.1].
And other issue is
cannot start internal http server. git integration, javascript debugger and liveedit may operate with errors. please check your firewall settings and restart android studio
I have searched everywhere but couldn't find any solution for these two issues.
Please help me with this issue. Thanks in advance.
Actually I found the solution to my problem. I don't know what exactly worked for me but after following these steps my problem was resolved.
Enjoy