怎么从MavenCentre和JCenter上自动获取你要的依赖

1.去网站搜索你需要依赖的gradle引用地址

JCenter

https://bintray.com/bintray/jcenter

MavenCenter

http://mvnrepository.com/

2.更改项目build.gradle JCenter/mavenCentral

repositories {
    jcenter()
}
3.在你需要使用的app中添加该地址
dependencies {
    compile filetree(dir: 'libs',include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.0'
    compile 'com.facebook.fresco:fresco:0.9.0'
}
4.build

相关文章

迭代器模式(Iterator)迭代器模式(Iterator)[Cursor]意图...
高性能IO模型浅析服务器端编程经常需要构造高性能的IO模型,...
策略模式(Strategy)策略模式(Strategy)[Policy]意图:定...
访问者模式(Visitor)访问者模式(Visitor)意图:表示一个...
命令模式(Command)命令模式(Command)[Action/Transactio...
生成器模式(Builder)生成器模式(Builder)意图:将一个对...