I would ask on the gradle forums how to properly set this up. It should be possible to make this work.
On Mon, Jul 21, 2014 at 8:11 AM, Ivan Samuelson <[email protected]> wrote: > I have a feeling this is due to my company's firewall. We do have a proxy > that requires us to use our LAN ID and password to get to the internet, > although it's an automatic proxy that uses LDAP to determine who we are. > However, some apps will require us to enter the proxy address, port and our > username and password. In Android Studio, I've set all of this up > appropriately in the settings. > > Also, we use McAfee and I had to turn off host UPS, network IPS and > firewall and that allowed Gradle to go out to the internet and start the > compilation process. > > However, even after all of that, Gradle will eventually fail with the > following: > > Failed to refresh Gradle project 'My Application' > Error:Error:Could not GET ' > http://jcenter.bintray.com/com/android/tools/build/gradle/'. Received > status code 407 from server: Proxy Authentication Required > <a href="toggle.offline.mode">Enable Gradle 'offline mode' and sync > project</a> > > > Again, all the proxy information is setup correctly. > > Also, since I can never get an online compile to work, I cannot use > offline mode as it doesn't have all the dependencies downloaded/cached yet. > This is the one reason I do not like Gradle. > > This works at home, which of course, we don't have a proxy and such (I do > have a firewall, both via my router and Norton), but again, Android Studio > works just fine there. > > So, I'm wondering, is this due to my work's setup? Do we have to open up > something in the firewall at work? > > This is on a Windows 7 machine. And, they do have the machines locked > down, but developers, such as myself, are given admin access. I've tried > running AS both normally and telling it to run as admin, but it doesn't > matter. I still get the same error. > > Eclipse gives us no problem, but that's because it doesn't use Gradle and > I'm really thinking of just sticking with Eclipse. It's what I'm used to, > but it seems Android Studio might be the direction of the future, but I do > not like the online requirement that is needed for at least the first > compile. That puts an unnecessary constraint that I feel shouldn't be > there. What if I'm working somewhere where I don't have internet connection > and I want to start coding in AS? I can't do that. > > Any help would be appreciated. I've search high and low and I've tried all > the suggestions (including setting up the proxy information in the > gradle.properties file) and nothing has worked. > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "adt-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Xavier Ducrohet Android SDK Tech Lead Google Inc. http://developer.android.com | http://tools.android.com Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
