Install android sdk7/29/2023 ![]() If you are on Apple Silicon or don't have wget installed: cd Android/sdk/tools # or Android/toolsĬurl -o jaxb_lib/istack-commons-runtime.jar The jar directory also doesn't belong under bin, so these instructions place it one level higher. Sed -ie 's%^CLASSPATH=.*%\0:$APP_HOME/jaxb_lib/*%' bin/sdkmanager bin/avdmanager # Append jaxb_lib to the CLASSPATH in sdkmanager and avdmanager ![]() Here's a more automated version of Emilio's answer (thanks!): cd Android/tools yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "platforms android-$" -sdk_root=$ANDROID_HOME unzip commandlinetools.zip -d $ANDROID_HOME/ I was seeing this error while attempting to accept the license agreement for build tools 30.0.2, targeting Android 30, with Java 11 for a travis CI build.Īpplying this answer ( ) I ended up with this working yml os: linux Or manually, scroll down to the CLASSPATH variable, and add the new jars we just downloaded like this: CLASSPATH=$APP_HOME/jaxb_lib/activation.jar:$APP_HOME/jaxb_lib/jaxb-impl.jar:$APP_HOME/jaxb_lib/jaxb-xjc.jar:$APP_HOME/jaxb_lib/jaxb-core.jar:$APP_HOME/jaxb_lib/jaxb-jxc.jar:$APP_HOME/jaxb_lib/jaxb-api.jar:įor those of you seeing this issue in Travis CI: ![]() You can do this manually or automatically.įrom Simon Ruggier answer (doesn't work on mac unless you use gnu-sed): sed -ie 's%^CLASSPATH=.*%\0:$APP_HOME/jaxb_lib/*%' bin/sdkmanager bin/avdmanager Wget -O jaxb_lib/istack-commons-runtime.jarĪfter the download finishes (make sure all files were downloaded OK), you have to edit sdkmanager and avdmanager scripts in the tools/bin directory. I built this on top of previous answers cd Android/tools If anyone is looking for a Linux fix on Java 11. ![]() The old sdkmanager has not received updates in years, so this workaround should not be necessary. UPDATE: as explained in another answer, the sdkmanager from the new command line tool supports JDK 11 .
0 Comments
Leave a Reply. |