Android Studio - 无法解析依赖关系

时间:2015-03-08 15:10:52

标签: android android-studio gradle dependencies

我已将我的android工作室更新为v1.1.0,从那时起我就遇到了问题。

当我尝试导入例如此lib:compile 'com.nispok:snackbar:2.10.2'时出现此错误:

Error:(28, 13) Failed to resolve: com.nispok:snackbar:2.10.2

我注意到我无法导入最近上传到jcenter的每个自定义库。

例如我可以编译这个lib:

compile 'com.github.traex.rippleeffect:library:1.2.3'

因为最近没有更新。但我不能使用这个lib:

compile 'com.github.chenupt.android:springindicator:1.0.1@aar'

因为最近更新了。任何人都可以帮助我吗?

1 个答案:

答案 0 :(得分:2)

我发现了问题。当我更新Android Studio时,IDE会自动检查离线模式,这就是为什么我无法导入新版本的库的原因:)

相关问题