Nacer_dz
Nacer_dz

Reputation: 13

Android studio version 3 compilation Gradle error

When I open a project in Android studio, it's giving me an error of Gradle. What is the problem and what is the solution? This is my message:

org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':classpath'. at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.rethrowFailure(DefaultConfiguration.java:918)

... the message is long

Thank you!

Upvotes: 0

Views: 2927

Answers (2)

Zeinab Rahnamaee
Zeinab Rahnamaee

Reputation: 53

I had same problem and finally i resolved it!

  1. Close Android studio
  2. Delete system-root/.gradle/cashes folder
  3. Delete your-project/app/build folder
  4. Rerun project

After syncing with gradle all files will download properly.

Upvotes: 1

Tushar Lathiya
Tushar Lathiya

Reputation: 1038

Please synchronize with

classpath 'com.android.tools.build:gradle:3.1.2'

Upvotes: 0

Related Questions