4

我尝试按照这些说明进行操作,因此我的 build.gradle(应用程序)的相关部分如下所示:

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

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

但 Android Studio 仍然显示此错误消息:

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
4

1 回答 1

6

你修改了buildscript. 说明显示更改allprojects

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

buildscript用于 Gradle 插件,这个库显然不是 Gradle 插件。

于 2016-08-11T20:54:10.213 回答