# Submodule sdk directory path error

**URL:** <https://discuss.circleci.com/t/submodule-sdk-directory-path-error/1763>\
**Category:** Mobile\
**Tags:** circle-yml, android\
**Created:** [January 26, 2016, 9:45pm UTC](https://discuss.circleci.com/t/submodule-sdk-directory-path-error/1763 "2016-01-26T21:45:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![archit](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@archit](https://discuss.circleci.com/u/archit)\
**Post date:** [January 26, 2016, 9:45pm UTC](https://discuss.circleci.com/t/submodule-sdk-directory-path-error/1763/1 "2016-01-26T21:45:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![archit](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@archit](https://discuss.circleci.com/u/archit)\
**Post date:** [January 31, 2016, 7:39pm UTC](https://discuss.circleci.com/t/submodule-sdk-directory-path-error/1763/2 "2016-01-31T19:39:26Z")

</div>

I solved it by removing the local.properties file from git. This file should never be pushed to git in the first place.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:33am UTC](https://discuss.circleci.com/t/submodule-sdk-directory-path-error/1763/3 "2018-06-18T11:33:23Z")

</div>

Closed on June 18, 2018, 11:33am UTC


