Skip to content

Commit a6c5282

Browse files
committed
feat(docker): Set the ANDROID_SDK_ROOT environment variable
The variable is required by old Android projects which use a version of the Gradle Android plugin that does not yet support `ANDROID_HOME`. Also see [1]. [1]: https://developer.android.com/tools/variables#envar Signed-off-by: Martin Nonnenmacher <[email protected]>
1 parent 7d051a6 commit a6c5282

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ ARG PHP_VERSION
526526

527527
# Repo and Android
528528
ENV ANDROID_HOME=/opt/android-sdk
529+
ENV ANDROID_SDK_ROOT=$ANDROID_HOME
529530
ENV ANDROID_USER_HOME=$HOME/.android
530531
ENV PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/cmdline-tools/bin
531532
ENV PATH=$PATH:$ANDROID_HOME/platform-tools

0 commit comments

Comments
 (0)