Hi All,
I am in the process of setting up circleci for my Android project hosted on GitHub.
I created .circleci/config.yml, pushed it to Github and trying to execute the build.
However, I am getting the following error:
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring project ‘:app’.
SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
My config.yml contains:
Build configuration for Circle CI
general:
artifacts:
- /home/ubuntu/DaggerAndroidScopesSampleApp/app/build/outputs/apk/
machine:
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
ANDROID_BUILD_TOOLS: 26.0.1
dependencies:
override:
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-26.0.1,android-26,extra-google-m2repository,extra-google-google_play_services,extra-android-support
- ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies
test:
override:
- (./gradlew assemble):
timeout: 360