At this time, with the Canary Channel, they have released the v1.0 release candidate for testing. This allows TRUE offline compiling by including the Maven repository. Of course, you'll have to be online the first time to download the repository, but after that, any time you create a new project, that's what it will use. No need to be online anymore. So, if you happen to be somewhere where you DON'T have internet connection (such as on a plane with no wifi, on public transportation with no wifi, or some deserted island), as long as you set up RC1.0 with the ability to connect to the internet, it will have download the repository and you can create new projects with NO need of internet access.
Works like a charm for me. On Monday, July 21, 2014 11:11:24 AM UTC-4, Ivan Samuelson 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.
