GitLab CI Android SDK not found
<p>I'm using a modified Docker image from jangrewe to automate the build. The SDK path should already defined in the Docker image using <code>ENV ANDROID_HOME "/sdk"</code> but GitLab showed me this error: <code>java.lang.RuntimeException: SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.</code>
So I modified my .gitlab-ci.yml file like this:</p>

<pre><code>image: tbremer19/wercker-container-android

before_script:
  - export ANDROID_HOME="/sdk"

build:
  script:
    - chmod 777 *
    - sudo ./gradlew assembleBetaDebug --stacktrace
  artifacts:
    paths:
    - app/build/outputs/apk/app-beta-debug.apk
</code></pre>

<p>but still get this error. Did anyone of you experience this? I tried to set ANDROID_HOME as an environment variable twice but apparently that didn't help...</p>