Hey Everyone,
my circle.yml looks something like this
general:
artifacts:
- /home/ubuntu/Latto-Android/app/build/outputs/apk/
machine:
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
dependencies:
override:
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-23.0.1,android-23,extra-google-m2repository,extra-google-google_play_services,extra-android-support,extra-libs/android-support-v7-cardview.jar,extra-libraryForFloatingButton,extra-libs/engine.io-client-0.5.0.jar,extra-libs/httpmime-4.2.5.jar,extra-libs/okhttp-2.3.0.jar,extra-libs/okhttp-ws-2.3.0.jar,extra-libs/okio-1.3.0.jar,extra-libs/socket.io-client-0.5.0.jar,extra-com.crashlytics.sdk.android:crashlytics:2.5.5@aar
- chmod +x gradlew
- ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies
test:
override:
- (./gradlew assemble):
timeout: 360
I have a couple of submodules in my Android project and for some reason I am not able to set the sdk path of one of the modules. My build reaches the stage at which the gradlew is fired up but then gives the error that The SDK directory ‘/Users/Home/Library/Android/sdk’ does not exist even though I have already set my ANDROID_HOME: /usr/local/android-sdk-linux. The following is a snapshot of the error
ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies
> Loading > settingsConfiguring > 0/4 projects > root project > Resolving dependencies ':classpat1/4 projects > :cardview2/4 projects
> Configuring > 2/4 projectsFAILURE:
> Configuring > 2/4 projectsBuild failed with an exception.
> Configuring > 2/4 projects
> Configuring > 2/4 projects
> Configuring > 2/4 projects* What went wrong:
> Configuring > 2/4 projectsA problem occurred configuring project ':cardview'.
> Configuring > 2/4 projects>
> Configuring > 2/4 projectsThe SDK directory '/Users/Home/Library/Android/sdk' does not exist.
> Configuring > 2/4 projects
> Configuring > 2/4 projects* Try:
> Configuring > 2/4 projectsRun with
> Configuring > 2/4 projects--stacktrace
> Configuring > 2/4 projects option to get the stack trace. Run with
> Configuring > 2/4 projects--info
> Configuring > 2/4 projects or
> Configuring > 2/4 projects--debug
> Configuring > 2/4 projects option to get more log output.
> Configuring > 2/4 projects
> Configuring > 2/4 projectsBUILD FAILED
> Configuring > 2/4 projects
> Configuring > 2/4 projects
> Configuring > 2/4 projectsTotal time: 4.973 secs
ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies returned exit code 1
> Configuring > 2/4 projectsAction failed: ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies
Can someone please tell me how to fix this so I can get my build running. Thanks in advance.