Problem to synchronize Gradle in Android Studio 2.3

1

I just installed Android Studio 2.3 and when creating a new project I get the following error with gradle. I already managed to download manually but still I still get the same error

Error:Failed to resolve: junit:junit:4.12
Error:Failed to resolve: javax.inject:javax.inject:1
Error:Failed to resolve: com.squareup:javawriter:2.1.1
Error:Failed to resolve: org.hamcrest:hamcrest-integration:1.3

I also eliminated the dependency

junit:junit:4.12

And I downloaded it manually because my internet connection is not good.

    
asked by Mario 20.04.2017 в 22:13
source

1 answer

1

You are using classes that are not Android SDK, for that reason they can not be resolved.

Error:Failed to resolve: junit:junit:4.12
Error:Failed to resolve: javax.inject:javax.inject:1
Error:Failed to resolve: com.squareup:javawriter:2.1.1
Error:Failed to resolve: org.hamcrest:hamcrest-integration:1.3

The project you are trying to create can not use one or more classes that you defined.

In fact, here is an answer from Mr. Mark Murphy about this:

link

    
answered by 20.04.2017 в 22:22