引用公共库

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引用Maven库AAR_第1张图片

更多相关文章

  1. Android 开发之自定义三级缓存
  2. Android WebView缓存机制详解
  3. Android获取当前城市名称
  4. picasso-强大的Android图片下载缓存库
  5. android强大的图片下载和缓存库Picasso
  6. android app 缓存路径
  7. android异步加载图片显示,并且对图片进行缓存实例
  8. android app -- Picasso 二级缓存加载图片,可控制加载图片大小(附

随机推荐

  1. 【Android】HTTP请求远端String和byte[]
  2. Android(安卓)Gesture 手势识别
  3. Official Note of Android(安卓)(importa
  4. Android(安卓)多线程2
  5. android蓝牙开发入门到精通3---服务端客
  6. Android生命周期
  7. android 使用md5加密
  8. Android(安卓)PinnedSectionListView异常
  9. android 存储一些app配置信息
  10. Android(安卓)发布项目到私服Nexus仓库