Skip to content Skip to sidebar Skip to footer

Unable To Resolve Dependency In Android Studio

When starting Android Studio, I get this error: Error:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support.test:runner:

Solution 1:

Under Linux on a new project you may get this error after installation Android Stidio if you haven't did this step (as described here):

If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386

If you are running 64-bit Fedora, the command is:

sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686

Solution 2:

Most probably you don't have properly defined repositories in your build.gradle:

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}

As described here

or

There's some issue with internet connection.

Post a Comment for "Unable To Resolve Dependency In Android Studio"