{"id":410,"date":"2014-12-08T21:33:52","date_gmt":"2014-12-08T21:33:52","guid":{"rendered":"http:\/\/www.sebcharrot.com\/blog\/?p=410"},"modified":"2014-12-08T21:33:52","modified_gmt":"2014-12-08T21:33:52","slug":"gradle-from-behind-a-proxy-part-deux","status":"publish","type":"post","link":"http:\/\/www.sebcharrot.com\/blog\/gradle-from-behind-a-proxy-part-deux\/","title":{"rendered":"Gradle from behind a proxy, part deux"},"content":{"rendered":"<p>In July I wrote a post documenting <a title=\"Using Gradle from behind a proxy\" href=\"http:\/\/www.sebcharrot.com\/blog\/2014\/gradle-behind-proxy\" target=\"_blank\" rel=\"noopener noreferrer\">how to build a project in Android Studio from behind a proxy<\/a>. Essentially you need to tell Gradle Studio your proxy settings.<\/p>\n<p>As of updating to Android Studio 1.0, the issue has come back! After a combination of swearing and research I&#8217;ve found the missing necessary steps.<\/p>\n<h2>So the new definitive steps for getting Gradle working from behind a proxy<\/h2>\n<ol>\n<li>Navigate to the &#8220;.gradle&#8221; folder in your user directory (e.g. C:\\Users\\bob\\.gradle)<\/li>\n<li>Create a &#8220;gradle.properties&#8221; file<\/li>\n<li>Edit the file to have the following contents (replacing your own values)\n<pre>systemProp.http.proxyHost=&lt;proxy_host&gt; \nsystemProp.http.proxyPort=&lt;port&gt; \nsystemProp.http.proxyUser=&lt;user&gt; \nsystemProp.http.proxyPassword=&lt;password&gt; \nsystemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost<\/pre>\n<\/li>\n<li>Go to Files &gt; Settings &gt; HTTP Proxy<\/li>\n<li>Select &#8220;Manual proxy configuration&#8221;<\/li>\n<li>Enter the same details you filled into the grade.properties file above: host, port, etc<\/li>\n<li>Tick &#8220;Proxy authentication&#8221;<\/li>\n<li>Fill in your username and password<\/li>\n<\/ol>\n<p>Tadaa. This should get you back up and running again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In July I wrote a post documenting how to build a project in Android Studio from behind a proxy. Essentially you need to tell Gradle Studio your proxy settings. As of updating to Android Studio 1.0, the issue has come back! After a combination of swearing and research I&#8217;ve found the missing necessary steps. So&hellip;&nbsp;<a href=\"http:\/\/www.sebcharrot.com\/blog\/gradle-from-behind-a-proxy-part-deux\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Gradle from behind a proxy, part deux<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":""},"categories":[23,15],"tags":[28,29,95,142,162],"_links":{"self":[{"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/posts\/410"}],"collection":[{"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/comments?post=410"}],"version-history":[{"count":0,"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/posts\/410\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/media?parent=410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/categories?post=410"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/tags?post=410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}