Android Studio 3.0.1 Error: Gradle project sync failed. Basic functionality (eg editing, debugging) will not work properly [SOLUTION]

0

I installed Android studio 3.0.1 and tried to create the first application with the choice of an empty activity, but I get the message:

  

Synchronization of the Gradle project failed. Basic functionality (eg editing, debugging) will not work correctly

and error message like this:

  

Unable to resolve dependency for ': app @ releaseUnitTest / compileClasspath': Could not resolve com.android.support: appcompat-v7:26.1.0.   Could not resolve com.android.support:appcompat-v7:26.1.0.   Required by:       project: app   Could not resolve com.android.support:appcompat-v7:26.1.0.   Could not parse POM link   Already seen doctype.

and this is the first part of the log message is:

  

2018-01-03 11: 11: 12,671 [d thread 8] WARN - ect.sync.idea.ProjectSetUpTask - Already seen doctype.   Consult IDE log for more details (Help | Show Log)   2018-01-03 11: 11: 12,671 [d thread 8] INFO - e.project.sync.GradleSyncState - Gradle sync failed: Already seen doctype.

I tried some suggested solution, like changing the gradle version, updating the Kotlin plugin (!) and so, but they did not work.

Any solution?

    
asked by anonymous 31.01.2018 / 16:34

1 answer

0

Topic: Gradle project sync failed. Basic functionality (eg editing, debugging) will not work properly

I was having this problem, after researching, I quite found the solution.

For those who have this problem in the future try doing this;

  

File > Settings > Search for: "Gradle";

  

Projectlevelsettings>Mark(x)Uselocalgradledistribution;

    

In"Gradle home" you can download this version:    Gradle 4.3.1

     

Create a folder in the c: / with name ".Gradle" and throw the files into it.

     

Returning to "Gradle home" you select the folder you created, if a message appears in the log, download whatever it says.

That's it, I hope it has helped you.

    
31.01.2018 / 16:43