
menny/android本镜像为Android持续集成(CI)提供通用且保持最新的运行环境,基于Ubuntu 17.04构建,集成了Android开发和构建所需的全套工具链,适用于自动化构建、测试Android应用的CI流程。
ubuntu:17.04系统使用本镜像构建Android项目时,若遇到以下许可证相关错误:
FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':app'. > You have not accepted the license agreements of the following SDK components: [Android SDK Platform 25, Android SDK Build-Tools 25.0.1]. Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager. Alternatively, to learn how to transfer the license agreements from one workstation to another, go to [***]
需在${ANDROID_HOME}目录下创建许可证文件夹并添加许可文件。解决步骤:
bashecho -e "8933bad161af4178b1185d1a37fbf41ea5269c55\c" > ${ANDROID_HOME}/licenses/android-sdk-license echo -e "79120722343a6f314e0719f863036c702b0e6b2a\n84831b9409646a918e30573bab4c9c91346d8abd\c" > ${ANDROID_HOME}/licenses/android-sdk-preview-license echo -e "8403addf88ab4874007e1c1e80a0025bf2550a37\c" > ${ANDROID_HOME}/licenses/intel-android-sysimage-license
注意:由于已知bug,需运行两次gradle命令,示例:
bash./gradlew dependencies || true ./gradlew clean
bashdocker build -t menny/android:latest .
bashdocker pull menny/android:latest
bashdocker run -i -t menny/android:latest
bashdocker stop $(docker ps -a -q)
bashdocker rm -f $(docker ps -a -q)
bashdocker rmi -f $(docker images -q)


manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务