0

I am new to Android Studio, and I've installed Android Studio 3 (no previous installations), and have attempted to create a new project.

However, I am getting multiple 'unable to resolve dependency' errors being displayed

details of dependency errors details of build.gradle (module) details of build.gradle (project)

I've not sure what I need to do to resolve these issues, as I've tried invalidating the cache, but this makes no difference.

JustBaron
  • 2,319
  • 7
  • 25
  • 37

1 Answers1

0

add Google's Maven repository (i.e in app build.gradle)

repositories {
    google()

    // If you're using a version of Gradle lower than 4.1, you must instead use:
    // maven {
    //     url 'https://maven.google.com'
    // }
    // An alternative URL is 'https://dl.google.com/dl/android/maven2/'
}

More info https://developer.android.com/studio/build/dependencies.html#google-maven

Vlad
  • 7,997
  • 3
  • 56
  • 43