Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio: Gradle build Error:169.254/16|*.169.254/16. Will ignore proxy settings for these hosts

I installed Android Studio a few weeks ago and I was able to create new projects and they built fine and I had them running. All of a sudden when I create a new project, gradle doesn't build because I get 6 of these errors:

Error:169.254/16|*.169.254/16. Will ignore proxy settings for these hosts.

That's all it says. I tried finding information online and even here but I have found nothing useful on this error. Someone mentioned it had something to do with their DNS settings but nothing on how to fix it. I am still able to run and build my old projects. I just can't build any new ones.

I really appreciate help on this as I can't move forward on my project. Thank you

like image 356
user1563560 Avatar asked Apr 01 '15 22:04

user1563560


1 Answers

I had the same errors in my project. I'm under Mac OSX. I don't know other platforms. I fixed it doing the following:

  1. Close Android Studio.
  2. Go to System Preference > Network
  3. Select your active connection and go to Advanced... settings.
  4. Select the Proxies tab.
  5. Delete everything from "Bypass Proxy Settings for These Hosts and Domains".
  6. Restart computer.

Hope I helped you or anyone else with the same problem. This was a hard one to figure out.

like image 167
Sergiu Marsavela Avatar answered Nov 11 '22 13:11

Sergiu Marsavela