docker-android-sdk / android-31 Goto Github PK
View Code? Open in Web Editor NEWDocker for Android SDK 31 with preinstalled build tools and emulator image
Docker for Android SDK 31 with preinstalled build tools and emulator image
I use this android-31
from docker hub to as base image for aws codebuild
to build android app but it always fails at update step:
13:59:51 [AWS CodeBuild Plugin] 2022/07/14 06:59:28 Running command yes | $ANDROID_HOME/tools/bin/sdkmanager --update
13:59:51 [AWS CodeBuild Plugin] Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
13:59:51 [AWS CodeBuild Plugin] at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
13:59:51 [AWS CodeBuild Plugin] at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
13:59:51 [AWS CodeBuild Plugin] at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
13:59:51 [AWS CodeBuild Plugin] at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)
13:59:51 [AWS CodeBuild Plugin] at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)
13:59:51 [AWS CodeBuild Plugin] Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
13:59:51 [AWS CodeBuild Plugin] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
13:59:51 [AWS CodeBuild Plugin] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
13:59:51 [AWS CodeBuild Plugin] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
13:59:51 [AWS CodeBuild Plugin] ... 5 more
13:59:51 [AWS CodeBuild Plugin]
why and how to fix this?
I am trying to run the emulator so it displays the device. (Some of my Espresso tests fail without the device display.) So I am not supplying the -no-window parameter when starting the emulator. When I don't specify -no-window, the emulator complains that the file libpulse.so.0 is missing and won't start. If it matters, I am specifying "system-images;android-26;google_apis_playstore;x86"
and device -d 16
when I create the AVD. (I eventually will be testing my app with a list of various API versions and various device types.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.