|
@@ -5,13 +5,15 @@ SHELL ["/bin/bash", "-c"]
|
|
|
# 采用 commandlinetools 安装,android 30
|
|
|
USER root
|
|
|
ENV ANDROID_HOME=/home/gitpod/androidsdk \
|
|
|
- FLUTTER_VERSION=2.2.3-stable
|
|
|
+ FLUTTER_VERSION=3.0.5-stable
|
|
|
|
|
|
# Install Open JDK
|
|
|
-USER root
|
|
|
-RUN apt update \
|
|
|
- && apt install openjdk-8-jdk -y \
|
|
|
- && update-java-alternatives --set java-1.8.0-openjdk-amd64
|
|
|
+# USER root
|
|
|
+# RUN apt update \
|
|
|
+# && apt install openjdk-8-jdk -y \
|
|
|
+# && update-java-alternatives --set java-1.8.0-openjdk-amd64
|
|
|
+USER gitpod
|
|
|
+RUN yes | sdk install java 11.0.16-amzn && sdk default java 11.0.16-amzn
|
|
|
|
|
|
# Install SDK Manager commandlinetools
|
|
|
USER gitpod
|
|
@@ -27,9 +29,9 @@ RUN echo "export ANDROID_HOME=$ANDROID_HOME" >> /home/gitpod/.bashrc \
|
|
|
|
|
|
# Install Android Image version 30
|
|
|
USER gitpod
|
|
|
-RUN yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "platform-tools" "platforms;android-30" "emulator"
|
|
|
-RUN yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "system-images;android-30;google_apis;x86_64"
|
|
|
-RUN echo no | $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd -n avd28 -k "system-images;android-30;google_apis;x86_64"
|
|
|
+RUN yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "platform-tools" "platforms;android-31" "emulator"
|
|
|
+RUN yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "system-images;android-31;google_apis;x86_64"
|
|
|
+RUN echo no | $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd -n avd28 -k "system-images;android-31;google_apis;x86_64"
|
|
|
|
|
|
|
|
|
# Install Google Chrome
|