Skip to content

Instantly share code, notes, and snippets.

@takahirom
Last active August 29, 2015 14:06
Show Gist options
  • Save takahirom/24b8f08a8f31818fbd13 to your computer and use it in GitHub Desktop.
Save takahirom/24b8f08a8f31818fbd13 to your computer and use it in GitHub Desktop.
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