WIP: sdkmanager NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema

parent e329ba8c
Pipeline #3801 failed with stages
in 1 minute and 47 seconds
FROM debian:buster
FROM debian:buster-slim
ENV LANG=C.UTF-8
ENV DEBIAN_FRONTEND=noninteractive
......
......@@ -15,6 +15,9 @@ echo "path-exclude=/usr/share/doc/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc
apt-get update
apt-get -y upgrade
# Fixes JDK install
mkdir -p /usr/share/man/man1/
# install Debian packages
apt-get install -y --no-install-recommends \
git \
......@@ -32,8 +35,8 @@ rm -rf /var/lib/apt/lists/*
# Android Part #
################
# Install Android SDK Manager (tools 26.1.1)
wget --no-verbose -O tools.zip https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
# Install Android SDK Manager
wget --no-verbose -O tools.zip https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip tools.zip
rm tools.zip
mkdir ${ANDROID_HOME}
......@@ -45,6 +48,9 @@ printf "\n8933bad161af4178b1185d1a37fbf41ea5269c55\nd56f5187479451eabf01fb78af6d
printf "\n84831b9409646a918e30573bab4c9c91346d8abd" > ${ANDROID_HOME}/licenses/android-sdk-preview-license
printf "\n79120722343a6f314e0719f863036c702b0e6b2a\n84831b9409646a918e30573bab4c9c91346d8abd" > ${ANDROID_HOME}/licenses/android-sdk-preview-license-old
# Fix sdkmanager NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
export JAVA_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee'
# Install platform-tools, build-tools and platform to prevent re-download each time
mkdir /root/.android
touch /root/.android/repositories.cfg
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment