I use Andoid Studio 2.1.2, after opening the finished project, the following error occurs:

Failed to sync Gradle project.
Error: Unknown host 'services.gradle.org'. You may need to adjust the proxy setting in gradle.

Please tell me how to solve the problem?

  • one
    do you have internet connection? - ZigZag
  • when opening And project - Vladyslav Matviienko
  • Yes, the project is connected to the Internet - D.Dante
  • Write errors with text, not screenshots. It will be difficult for users with a similar error to solve the same problem to find it from the screenshot using the search. - pavlofff

2 answers 2

Either Proxy is not configured! (What is said in the message) Either sanctions are to blame (the site does not accept the connection from the Crimean)

  • Thanks for the help, the problem turned out to be quite different. I didn’t open the project correctly and decided to import the project in the following way from scratch - D.Dante

Try this:

File> Settings> Appearance & Behavior> System Settings> HTTP Proxy [Under IDE Settings] Enable the following option Auto-detect proxy settings

  • Vladimir Seos-Lab error was removed, but now the following error has appeared: Error (19, 0) Gradle DSL method not found: 'android ()' Possible causes: method. This is a gradle wrapper. Apply Gradle plugin - D.Dante
  • Show app.gradle and build.gradle - Vladimir VSeos