Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio "Cannot start internal HTTP server"

I'am trying to install Android studio, but bad luck..:-(.

  • Windows 7
  • Latest Andriod studio
  • Latest Java
  • Installed the latest Java and also added it to the system settings according to http://www.youtube.com/watch?v=TTrUX1kUpDo
  • Also downloaded Gradle and updated the system settings
  • Stopped all firewall actions

So far so good, Android studio is also starting without any problems. But then I get two messages:

  • Internal HTTP server disabled: Cannot start internal HTTP server. Git integration, JavaScript debugger and LiveEdit may operate with errors. Please check your firewall settings and restart Android Studio
  • Gradle 'Nieuwproject' project refresh failed: Connection refused: connect

So after a few days of trying I was hoping that somebody could help me out..:-)

like image 503
janmarc Avatar asked Nov 10 '13 12:11

janmarc


3 Answers

Here's what worked for me - I got the same error:

Internal HTTP server disabled: Cannot start internal HTTP server. Git integration, JavaScript debugger and LiveEdit may operate with errors. Please check your firewall settings and restart Android Studio

Run command prompt as administrator - type cmd in the 'search programs and files' text box in the Windows Start menu; right-click and select 'Run as administrator'.

At the command prompt, type

netsh winsock reset

Restart your PC

This worked for me.

Just to mention: I also added Android Studio and Gradle folders to my virus protection exceptions in case it was being blocked, but that didn't resolve the problem; the problem was only resolved once I followed the steps above.

like image 200
Nick Avatar answered Nov 09 '22 12:11

Nick


Turn OFF firewall then turn ON again. Sometimes firewall blocks it automatically when you start your PC. It also blocks to internet browsing for other reason but restarting firewall may solve this problem.

like image 25
Satendra Behre Avatar answered Nov 09 '22 11:11

Satendra Behre


I encountered this problem after uninstalling Avast from my Computer,few days later i installed Avast again and the problem went away,Dont know what the connection is but thats what solved my problem

like image 34
Hilary Mwape Avatar answered Nov 09 '22 12:11

Hilary Mwape