Android Studio Unable install updates/New packages in Mac - android

I have installed Android Studio in my Mac. It is installed with basic packages. Now I am trying into install other Updates/New packages. But, it is failed with timeout error.
Please suggest that what is configuration seems to be missing...?

it seems to be a network issue: you have multiple timeout relative to local address 192.168.12.10. Check your network settings and wifi and ethernet wires.

Related

Android Studio not connecting to internet and get 403 response

When installing Android Studio the action Finding available SDK components seems failed and no SDK get installed.
Also tried to install SDK using Android commond line tools and when I try to get list of SDKs by using below command
sdkmanager --list --verbose I get 403 error for downloading below xml file
https://dl.google.com/android/repository/addons_list-1.xml,https://dl.google.com/android/repository/addons_list-2.xml,https://dl.google.com/android/repository/addons_list-3.xml
But when I try from browser I am able to download those files.I am using my office laptop and I have checked Automatically detect settings in LAN settings and even I tried with uncheck that option also ,still getting the same result.
When I try to connect the Office VPN and set the proxy then I am not able to download by browser also
I tried with change setting in "No Proxy", "Auto Detect" and "Http Proxy" options in android studio also still no luck
And when I start Android Studio it shows "Untrusted Server's certificate" for "*.google.com" and I click Accept to continue.
I am using Windows 10 and AdoptOpenJDK 11. How I can resolve this issue.
Thanks in advance

Gradle sync failed: Could not connect to server

In my android studio 3.0 i am continuously getting 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.
after this my gradle sync also failed stating the error -
Gradle sync failed: Could not connect to server [a3ea2c7d-cc16-4af2-82a9-037277903c02 port:49555, addresses:[/127.0.0.1]]. Tried addresses: [/127.0.0.1].
One thing to note down that this gradle sync failed when it(gradle) is connecting to gradle daemon.
i have tried all the options from stack overflow like netsh winsock reset etc.
But nothing work for me.
Also to mention i do not use embedded JDK in AS. I have provided it my downloaded jdk8.
How to solve this problem.
Thanks in advance.
Make sure your machine is connected to the internet.
Check the link here: Configure Android Studio - Proxy
I personally recommend that you try disabling the proxy if it is enabled.
Go to Windows Firewall -> Inbound & Outbound Rules -> add java.exe from JDK path & studio.exe from Android Studio directory.

Why can't both Gradle sync and internal http work in a fresh install of Android Studio?

I'm trying to install and start learning Android Development. I have tried a lot of things to get Android Studio working, but I simply can't!
There are 2 errors:
Gradle 'MyFirstApp' project refresh failed - Error:Protocol family
unavailable
and
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
Here what I already did:
For Gradle:
tried to uninstall deleting all folders and files regarding AS 1.5.1 and reinstall
checked for java environment variables
reinstall just gradle
For Internal HTTP:
disabled Kaspersky Internet Security (version 16.0.0.614(d))
checked if any other service or software could be using some known ports, disabled as much as I could
uninstall and try a fresh install as I did for gradle
Nothing works!
I always install with Kaspersky temporaly disabled and I run the installation package as administrator
Some data that might be useful:
SO: Windows 10 Pro (single language en-us)
Android Studio: 1.5.1 (android-studio-bundle-141.2456560-windows)
What else do you need?
Can anyone help me?
Thanks a lot!
UPDATE:
I have just installed on another computer running Windows 10 (home) 64bit with Java JDK 1.8 U 66 just like the first attempt, i.e., with both firewall & anti-virus software disabled and with administrator privileges.
The problem is exactly the same.
:(

Android Studio Failed to fetch - Connection refused: connect

Android Studio Setup Wizard (studio64.exe) is not able to fetch some XMLs.
I have set in studio64.exe.vmoptions
-Djava.net.preferIPv4Stack=true
-Dhttp.proxyHost=...
-Dhttp.proxyPort=...
Also tried
-Dhttp.proxyHost=www.google.com
-Dhttp.proxyPort=80
But nothing works and I didn't find anything helpful on google seeming like I'm the only one with that problem.
Details:
Android SDK was installed to C:\Users\*\AppData\Local\Android\sdk
Refresh Sources:
Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Connection refused: connect
Fetched Add-ons List successfully
Refresh Sources
Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-10.xml, reason: Connect Connection refused: connect
Refresh Sources:
Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-10.xml, reason: Connect Connection refused: connect
There is nothing to install or update.
The following SDK component was not installed: build-tools-21.1.1
I'm using a lot of dev tools without a problem and Android Studio is now the first one with connectivity issues.
The XML files mentioned I can access via browser without a problem.
I had a similar issue when working behind a proxy server on x86 system. Initially the Studio doesn't provide any interface for settings so the following has to be done.
Proxy settings for Android Studio should be made in "other.xml" which resides in "D:\Users\%UserProfile%.AndroidStudio\config\options" (in my system).
To manually set a proxy find "USE_HTTP_PROXY" and make it's value = "true" followed by proper "PROXY_HOST" and "PROXY_PORT" values.
To automatically detect the present proxy settings find "USE_PROXY_PAC" and make it's value = "true".
If you are on Windows, try running Android Studio as Administrator. It solved the problem for me. I am using Android Studio 1.5.1.
EDIT: The problem came up again and this time, it was solved by setting the HTTPS Proxy as well in addition to HTTP Proxy. More details here.

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..:-)
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.
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.
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
if Shell&ServicesEngine is installed on your computer, uninstall it and restart the Android Studio.

Categories

Resources