build.gradle Failed to resolve:me.relex:circleindicator:1.1.5

在build.gradle文件中

compile 'me.relex:circleindicator:1.1.5@aar'

build.gradle Failed to resolve:me.relex:circleindicator:1.1.5

出现这个错误。

(1)查看自己的build.gradle文件和库的build.gradle文件

compileSdkVersion 22
buildToolsVersion "22.0.1"
是否跟me.relex:circleindicator:1.1.5一样,高于库的版本一般都没有问题。


还是出现问题,

(2)在当前工程目录下执行./gradlew clean命令就可以了

robotkedeMacBook-Pro:SimpleAssistant robotke$ ./gradlew clean
Download https://jcenter.bintray.com/me/relex/circleindicator/1.1.5/circleindicator-1.1.5.pom
Download https://jcenter.bintray.com/me/relex/circleindicator/1.1.5/circleindicator-1.1.5.aar
:app:clean
:slideDateTimePicker:clean

BUILD SUCCESSFUL

Total time: 12.066 secs
robotkedeMacBook-Pro:SimpleAssistant robotke$ 



在编译

compile 'com.dlazaro66.qrcodereaderview:qrcodereaderview:1.0.0'

这个库的时候,也遇到上述的问题,最后也是通过命令解决的。

你可能感兴趣的:(Android学习)