Gitlab CI Android template is outdated and doesn't work
Summary
The Android template for .gitlab-ci.yml is outdated and does not work.
Steps to reproduce
On an Android project In the Overview/Details tab click Set Up CI/CD Click Apply Gitlab CI Yaml Template Select Android
The template is based on this blog post: https://about.gitlab.com/2016/11/30/setting-up-gitlab-ci-for-android-projects/
and it's outdated. It doesn't work.
The two main issues are downloading and installing the Android SDK. The download location changed so
- wget --quiet --output-document=android-sdk.tgz https://dl.google.com/android/android-sdk_r${ANDROID_SDK_TOOLS}-linux.tgz
does not work.
For installing the SDK components it uses the tools/android
command which is deprecated. The sdkmanager should be used instead.
I wrote about what I did to fix the issues here
What is the current bug behavior?
The Android template does not install the Android SDK and Android SDK components.
What is the expected correct behavior?
The Android template should be able to install the Android SDK and Android SDK components.
Possible fixes
You can check out my blog post for possible fixes. I'd be happy to provide a pull request with a fix if you point me in the right direction.