我尝试关注these instructions,因此build.gradle(app)的相关部分如下所示:
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
答案 0 :(得分:3)
您修改了buildscript
。说明显示正在更改allprojects
:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
buildscript
用于Gradle插件,这个库显然不是Gradle插件。