1 未自动授权时现象
未授权的Dockerfile脚本片段:
# update sdkmanager and install build tools
ENV ANDROID_VERSION=25 \
ANDROID_BUILD_TOOLS_VERSION=26.0.2
RUN $ANDROID_HOME/tools/bin/sdkmanager --update
RUN $ANDROID_HOME/tools/bin/sdkmanager "build-tools;${ANDROID_BUILD_TOOLS_VERSION}" \
"platforms;android-${ANDROID_VERSION}" \
"platform-tools"
执行到上面脚本会出现如下提示:
Failed to install the following Android SDK packages as some licences