我已经将Android Studio更新至v1.1.0,此后我遇到了问题。
例如,当我尝试导入此库时:compile 'com.nispok:snackbar:2.10.2'
出现此错误:
Error:(28, 13) Failed to resolve: com.nispok:snackbar:2.10.2
我注意到我无法导入最近上传到jcenter的每个自定义库。
例如我可以编译这个库:
compile 'com.github.traex.rippleeffect:library:1.2.3'
因为最近没有更新。但我不能使用这个库:
compile 'com.github.chenupt.android:springindicator:1.0.1@aar'
因为最近更新。有人可以帮我吗?
我发现了问题。更新了Android Studio后,IDE会自动检查离线模式,这就是为什么我无法导入新版本的libs的原因:)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句