BlurBehind - 无法在Android Studio中找到依赖项

时间:2014-10-12 17:29:29

标签: android android-studio android-library

我正在尝试使用BlurBehind Lib,但是我收到了错误。

Error:Failed to find: com.faradaj:blur-behind:[LATEST_RELEASE_VERSION]

我添加了

dependencies {
    compile 'com.faradaj:blur-behind:[LATEST_RELEASE_VERSION]'
}

我仍在适应新的IDE,我感谢任何帮助!

2 个答案:

答案 0 :(得分:3)

以下是正确添加此库的方法:

第一步

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

第二步

dependencies {
 compile 'com.github.faradaj:BlurBehind:1.0.3'
}

答案 1 :(得分:2)

这里有几件事。

首先,这个库不是从JCenter甚至是Maven Central发布的。 这意味着您需要从源代码构建它。随意+1 this issue。 幸运的是,它非常简单,只需遵循github instructions

完成后,您需要指定版本而不是[LATEST_RELEASE_VERSION]。 目前it's 1.0.3