0

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:1.0.1.

Grimthorr
  • 6,856
  • 5
  • 41
  • 53

2 Answers2

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

ap_17
  • 9
  • 4
0

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.

sandrstar
  • 12,503
  • 8
  • 58
  • 65