4

I tried following these instructions so the related parts of my build.gradle (app) looks like this:

buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
        maven { url 'https://jitpack.io' }
    }

compile 'com.github.qiugang:EditTag:v1.2.3'

but Android Studio still displays this error message:

Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
   > Could not find com.github.qiugang:EditTag:v1.2.3.
     Required by:
         myapp-yeah:app:unspecified
OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Alejandro H. Cruz
  • 507
  • 1
  • 7
  • 15

1 Answers1

6

You modified buildscript. The instructions show changing allprojects:

allprojects {
    repositories {
        ...
        maven { url "https://jitpack.io" }
    }
}

buildscript is used for Gradle plugins, and this library apparently is not a Gradle plugin.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491