title: Android Project Gitlab-ci.yml JAVA_HOME not set
body: <p>I am currently trying to create a .gitlab-ci.yml file in which an Android Studio project is automatically build. The file structure in my GIT repo looks like this:</p>
  <pre><code>the_app
  .gitlab-ci.yml
  README.md
  </code></pre>
  <p>My .gitlab-ci.yml looks like this:</p>
  <pre><code>image: jangrewe/gitlab-ci-android
  variables:
    ANDROID_COMPILE_SDK: &quot;30&quot;
  
  
  before_script:
    - export GRADLE_USER_HOME=$(pwd)/.gradle
    - apt-get update -y &amp;&amp; apt-get install wget -y  
  
  build:
    script:
      - cd ./ISSD_application
      - chmod +x ./gradlew
      - ./gradlew assembleDebug
    artifacts:
      paths:
      - app/build/outputs/
  </code></pre>
  <p>But now I get the error that says:</p>
  <pre><code>ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
  
  Please set the JAVA_HOME variable in your environment to match the
  location of your Java installation.
  </code></pre>
  <p>The Java installation that is used for the Android project is on my computer and not in the GIT-repo. How can I set the JAVA_HOME variable correctly so the project can build?</p>