I am building an Android Application using CircleCI, and within the project I compile an Android Library as a dependency. However, I get the following error during the CircleCI build:
A problem occurred configuring project ':aModule'.
> The SDK directory '/home/myname/Android/Sdk' does not exist.
It looks like CircleCI is attempting to use some build tools to compile the module, but fails because it is using an absolute path on my machine. How would I configure CircleCI to use a local path of the Android SDK, if possible?
Here is my build.gradle
as well, if necessary:
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "com.myapp.app"
minSdkVersion 16
targetSdkVersion 24
versionCode 1
versionName "0.1"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
maven {
url "http://dl.bintray.com/glomadrian/maven"
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
wearApp project(':wear')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:cardview-v7:24.0.0'
compile 'com.github.medyo:fancybuttons:1.8.1'
compile 'com.github.glomadrian:roadrunner:1.0@aar'
compile 'com.afollestad.material-dialogs:core:0.8.6.1'
compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.16'
compile 'com.android.support:design:24.0.0'
compile 'com.github.PhilJay:MPAndroidChart:v3.0.0-beta1'
compile 'joda-time:joda-time:2.9.4'
compile project(':aModule')
}
* Update: The SDK path is set in my project's local.properties