I'm simply trying to install android studio. Unfortunately my gradle isn't working properly.
The configure build is always failing and throws the error:
Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.pom'. Received status code 407'
I can download the file manually without any problem. (but don't know where to put it so android studio will find it)
I even restarted android studio several times, downloaded gradle locally and put the http proxy on auto detect proxy settings.
The HTTP status code 407 indicates that a proxy authentication is required. Have a look at the documentation on how to do proxy authentication for Gradle as the details really depend on the expected proxy authentication scheme.
Related
I used to run android studio through a proxy, it was called "wall" so I had it configured that way.
I upgraded to Android Studio 3.2 and additionally had to stop using it so I am connected to the internet through a proxy free connection.
I went to my settings->Appearance&Behaviour->System Settings->HTTP Proxy and set the option to No proxy
I search throughout my project for a reference to wall and I couldn't find anything
However when I try to build, gradle tries to download a file ( 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.61/kotlin-gradle-plugin-1.2.61.pom' ) which I can download normally through my browser and I get the Unknown host 'wall'. You may need to adjust the proxy settings in Gradle.
I tried with a brand new project and get the same.
I tried deleting the C:\Users\(username)\.AndroidStudio3.2 folder and again the same message.
Can someone please provide me with a solution?
After some hours of searching it seems that the problem was that gradle seems to keep a backup of gradle.options (or I may have done it through an option in android studio) in C:\Users\(username)\.gradle\ so even though I removed all references to my proxy, it still kept those and ignored the gradle.properties file in my project.
When I removed the entries to my proxy, it worked fine
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.
I am trying to open a project (developed in a different machine) with my newly installed android studio 2.3. The studio was downloading gradle-2.1.2.pom but threw the following error:
Could not GET
'https://jcenter.bintray.com/com/android/tools/build/gradle/2.1.2/gradle-2.1.2.pom'.
Received status code 403 from server: Forbidden
When I try to open the same url above from my browser, it downloads the .pom file, which means the proxy is not blocking it. I have configured the studio with the proxy address and login credentials. Can anyone explain me why is android studio unable to connect to the same site that the browser can open.
Note: I could not find any hint about this in the existing questions about gradle behind proxy, so this new question.
I found out the answer. The solution is to add the certificate to the site https://jcenter.bintray.com in Java (follow this link to do so) and restart the android studio. Basically, the site has to be trusted by java runtime for connecting using https.
Recently I started learning the libgdx library and wanted to give it a try on Android Studio.
I followed up some tutorials found on different websites. The problem is when gradle sync starts, it gives an error:
Gradle sync failed: Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
I m not behind any proxy. I tried to disable firewall, enable offline / online gradle sync with the offline folder, forced the sdk to download with http instead of https, changed the distributionUrl into http and changed the distribution url aswell.
Nothing worked.
I don't really know if it is a coincidence or not but when I try to launch the standalone SDK, it gives this error when trying to fetch url saved in the SDK update sites:
Failed to fetch URL https://dl.google.com/android/repository/repository-11.xml, reason: HttpHostConnect Connection to https://dl.google.com refused
Thank you.
Try to do that:
Android SDK Manager > Tools > Options
Check "Force https://...
sources to be fetched using http://..."
I am trying to run the react native examples for androind on windows. My system is setup behind a corporate proxy. i am unable to get gradle to work though.
Following proxy settings are defined in the global gradle.properties.
systemProp.http.proxyHost=<proxy.url>
systemProp.http.proxyPort=8080
systemProp.https.proxyHost=<proxy.url>
systemProp.https.proxyPort=8080
I tried running the build from android studio(2.0), same story. My network proxy is properly configured there, i checked, i can access the internet from it.
i changed my build tools to point to the gradle distribution that comes with it, that didn't change anything either.
i keep getting an error saying
"Unknown host <my.proxy.url>. You may need to adjust the proxy settings in gradle"
I also checked, i can download the poms it requires from my browser. it seems as if gradle is unable to work from behind a proxy, at all.
can anyone help?