Android
using local aar file
aucd29
2015. 6. 17. 16:10
http://stackoverflow.com/questions/24506648/adding-local-aar-files-to-gradle-build-using-flatdirs-is-not-working
File -> New Module -> Import .JAR/.AAR) and import your .AAR
dependencies {
compile project(':Name-Of-Your-Project')
}
or
http://stackoverflow.com/questions/24506648/adding-local-aar-files-to-gradle-build-using-flatdirs-is-not-working
In your app project you can drop this .aar file in the libs folder and update the build.gradle file to reference this library using the below example:
repositories {
flatDir {
dirs 'libs' //this way we can find the .aar file in libs folder
}
}
dependencies {
compile 'be.hcpl.android.appframework:appframework:0.1.0@aar' // packagename:filename:version@aar
}
File -> New Module -> Import .JAR/.AAR) and import your .AAR
dependencies {
compile project(':Name-Of-Your-Project')
}
or
http://stackoverflow.com/questions/24506648/adding-local-aar-files-to-gradle-build-using-flatdirs-is-not-working
In your app project you can drop this .aar file in the libs folder and update the build.gradle file to reference this library using the below example:
repositories {
flatDir {
dirs 'libs' //this way we can find the .aar file in libs folder
}
}
dependencies {
compile 'be.hcpl.android.appframework:appframework:0.1.0@aar' // packagename:filename:version@aar
}