德州建网站/做任务赚佣金一单10块
资料
ANDROID STUDIO 生成AAR和引用AAR
Android Studio 添加jar或aar依赖的两种方式
Gradle 构建学习(一)---------详解 Project
Gradle 构建学习(二)---------详解 task
生成aar
拿到aar
配置build.gradle文件
repositories {flatDir {dirs 'libs'}compile(name:'paysdk-debug', ext:'aar') name后面是自己的aar的名字apply plugin: 'com.android.application'android {compileSdkVersion 23buildToolsVersion "23.0.2"defaultConfig {applicationId "com.umpay.paydemo"minSdkVersion 15targetSdkVersion 23versionCode 1versionName "1.0"}buildTypes {release {minifyEnabled falseproguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'}}}
repositories {flatDir {dirs 'libs'}
}
dependencies {compile fileTree(dir: 'libs', include: ['*.jar'])compile 'com.android.support:appcompat-v7:23.3.0'compile(name: 'paysdk-debug', ext: 'aar')
}
方式一
implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
方式二
implementation(name:'xxx-debug', ext:'aar')
资料
Gradle 插件练习-动态移除权限
Gradle Build Language Reference
查看gradle下载地址缓存仓库
https://www.jianshu.com/p/35f18436dc52
android自己的jar包下载在以下目录
/Users/stone/Downloads/sdk/extras/android/m2repository
3,第三方jar包下载在以下目录
/Users/stone/.gradle/caches/modules-2/files-2.1
file:/C:/Android Studio2.3/gradle/m2repository/com/android/tools/build/gradle
Android Studio 3.0之Could not find com.android.tools.build:gradle:3.0.0解决方法
关于使用com.android.tools.build:gradle:3.0.0-beta2 报错implementation()
Android平台app打包时遇到的问题:从Could not resolve com.android.tools.build:gradle:3.0.0.说起