Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Androidライブラリプロジェクト(aar)のファイルを直接読み込む
apply plugin: 'com.android.application'
android {
compileSdkVersion 20
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.xxxx.xxxx"
minSdkVersion 18
targetSdkVersion 20
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
mavenCentral()
flatDir {
dirs '../../XXX/mobile/build/outputs/aar'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile(name:'mobile', ext:'aar')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment