• Register
0 votes
82 views

Problem :

I am new to Android. Recently I have installed the Android studio 3.1.3 and it started giving me the dependencies error if tried to make the new project and tried to compile for the first time.

“Unable to resolve dependency for ':app@debug/compileclasspath': could not resolve project”

8 4 2
2,300 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I had faced this issue in the past. It is really tough issue to resolve if you don’t have any guidance. I can help you in resolving your error.

Please follow below procedure very carefully to fix your issue.

You need to go to your File->Invalidate Caches / Restart

After this you should clean the .gradle and .idea these directories are present under your project root directory.

Also you need to add the below given Google Maven repository and then you can sync your project

buildscript {
    repositories {
        jcenter()
        google()
        maven {
           url "https://maven.google.com"
        }
    }
       dependencies {
        classpath 'com.android.tools.build:gradle:3.1.3'
    }
}
allprojects {
    repositories {
        google()
        jcenter()
        maven {
           url "https://maven.google.com"
        }
    }
}

Currently if you the Android Gradle Plugin 3.1.3 then you update it to version 4.4. Under your root directory of the project, you must update your gradle-wrapper.properties as follows.

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

Hope it fixed your issue.

5 2 1
4,980 points

Related questions

0 votes
1 answer 3 views
3 views
Problem: I am unable to resolve dependency for ':app@debug/compileclasspath': can any one help solving these issue.
asked Mar 18 waseem memon 2.4k points
0 votes
1 answer 18 views
18 views
Problem could not find method google() for arguments [] on repository container.
asked Feb 9 charles mathews 5.5k points
0 votes
1 answer 87 views
87 views
Problem: re-download dependencies and sync project (requires network)
asked Feb 16 Ethan ross 2.3k points
0 votes
1 answer 673 views
673 views
Problem : Recently I have updated to Android Studio 3.1. But my project is not running anymore. I have searched for the solution all over the internet with zero positive results. Below is the error that I get in my Logcat: “Java.lang.noclassdeffounderror: ... sdk:4.+'     implementation 'com.parse:parsefacebookutils-v4-android:1.10.3@aar'     implementation 'com.commit451:PhotoView:1.2.4' }
asked Jan 30, 2020 jwilliam 3.9k points
0 votes
2 answers 1.1K views
1.1K views
Problem : Currently I am using the Android Studio 2.1 but when I try to run it the suddenly my App shows me the below error Message my Gradle Build saying the following Exception is: org.gradle. ... .execute(SkipEmptySourceFilesTaskExec uter.java:52) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.j ava:52)
asked Jan 31, 2020 jwilliam 3.9k points
0 votes
1 answer 9 views
9 views
unable to resolve dependency for ' app@debug/compileclasspath'
asked Feb 16 ArifulIslam 7.5k points
0 votes
1 answer 7 views
7 views
Problem: how can solve this question please solve it... the two build files generated by android studio are in ________________.
asked Apr 1 Ifra 24.4k points
0 votes
1 answer 8 views
8 views
Problem: I get this error in my Logcat: Manifest merger failed with multiple errors, see logs that I have Linked with it
asked Mar 17 ummesalma 22k points
1 vote
1 answer 390 views
390 views
Problem : After updating my android studio, I am facing below error. How can I fix this error?? org.gradle.execution.MultipleBuildFailures: Build completed with 1 failures. at org.gradle ... .execute(SessionFailureReportingActionExecuter.java:63) at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:53)
asked Dec 11, 2019 alecxe 7.5k points
0 votes
1 answer 37 views
37 views
Problem: could not resolve com.android.support:appcompat-v7:26.1.0.
asked Feb 22 Dan phillip 4.1k points