Android引用Maven库AAR
16lz
2021-01-23
引用公共库
build.gralde
allprojects { repositories { jcenter() maven { url "" //Maven库地址 } } //Gradle缓存更新时间 configurations.all { resolutionStrategy.cacheChangingModulesFor(0, 'seconds') }}
app/build.gralde
compile('GROUP_ID:ARTIFACT_ID:VERSION') { changing true;}
配置公共库
build.gralde
apply plugin: 'maven'uploadArchives{ repositories{ mavenDeployer{ repository (url:''){ authentication(userName:'',password:'') } pom{ groupId='' artifactId="" version="" name="" //Module名称 packaging="aar" } } }}
更多相关文章
- Android 开发之自定义三级缓存
- Android WebView缓存机制详解
- Android获取当前城市名称
- picasso-强大的Android图片下载缓存库
- android强大的图片下载和缓存库Picasso
- android app 缓存路径
- android异步加载图片显示,并且对图片进行缓存实例
- android app -- Picasso 二级缓存加载图片,可控制加载图片大小(附