Any plans to replace ANDROID_HOME
with ANDROID_SDK_ROOT
, since it's deprecated? https://developer.android.com/studio/command-line/variables#android_sdk_root
Search Criteria
Package Details: android-sdk 26.1.1-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/android-sdk.git (read-only, click to copy) |
---|---|
Package Base: | android-sdk |
Description: | Google Android SDK |
Upstream URL: | https://developer.android.com/studio/releases/sdk-tools.html |
Keywords: | android development |
Licenses: | custom |
Submitter: | None |
Maintainer: | dreamingincode |
Last Packager: | dreamingincode |
Votes: | 1488 |
Popularity: | 0.83 |
First Submitted: | 2007-11-12 19:26 (UTC) |
Last Updated: | 2022-03-22 20:58 (UTC) |
Dependencies (22)
- fontconfig (fontconfig-srb, fontconfig-minimal-git, fontconfig-git, fontconfig-ubuntu)
- freetype2 (freetype2-minimal-git, freetype2-ttmetrics, freetype2-v35, freetype2-git, freetype2-ultimate5, freetype2-infinality-remix)
- gcc-libs (fastgcc, gccrs-libs-git, gcc-libs-git)
- java-environment (java-gcj-compat, zulu-10-bin, jdk12-openj9-bin, zulu-12-bin, jdk12, jdk13-openj9-bin, jdk9-openj9-bin, jdk10, jdk11-openjdk-dcevm, jdk10-openj9-bin, jdk14-openj9-bin, jdk7, zulu-14-bin, amazon-corretto-15, jdk11-openjdk-dcevm-conflicts-fixed, zulu-embedded-jdk8, sapmachine-jdk-bin, amazon-corretto-16, jdk8-graalvm-bin, jdk16-graalvm-bin, jdk8-openjdk-shenandoah, zulu-16-bin, jdk11-graalvm-ee-bin, jdk16-adoptopenjdk, jdk11-microsoft-openjdk, jdk16-microsoft-openjdk, jdk11-msopenjdk-bin, jdk18-beta-temurin, jdk8-arm, jdk17-jetbrains, liberica-jdk-11-bin, liberica-jdk-11-lite-bin, liberica-jre-11-bin, jdk11-jetbrains-imfix, java-openjdk-loom-ea-bin, jdk17-dragonwell-bin, jdk7-j9-bin, jdk7r1-j9-bin, jdk8-j9-bin, jdk11-j9-bin, jdk-jetbrains, jdk11-jbr-xdg, jdk12-openjdk, jdk15-openjdk, jdk16-openjdk, jdk13-openjdk, jdk14-openjdk, jdk-bcl, amazon-corretto-18, zulu-18-bin, zulu-13-bin, bishengjdk-17, jdk-arm, jdk11-openj9-bin, jdk-openj9-bin, jdk-openj9, jabba-bin, jdk-lts, jdk, zulu-15-bin, zulu-embedded-jdk, jdk-jbr-xdg, jdk-openjdk-xdg, jdk-openjdk-xdg-bin, zulu-embedded-jdk11, jdk-microsoft-openjdk, jdk18-openjdk, jdk17-openj9-bin, jdk17-jetbrains-bin, jdk11-jetbrains-bin, liberica-jdk-8-full-bin, liberica-jdk-17-full-bin, liberica-jdk-full-bin, liberica-jre-11-full-bin, liberica-jdk-11-full-bin, jre-jetbrains, jdk8-dragonwell-extended-bin, jdk8-dragonwell-standard-bin, jdk11-dragonwell-extended-bin, jdk11-dragonwell-standard-bin, jdk17-dragonwell-standard-bin, jdk8-dragonwell-extended, jdk8-adoptopenjdk, jdk18-openj9-bin, jdk8-openj9-bin, jdk8, jdk11, jdk17-jetbrains-imfix, jdk-android-studio, amazon-corretto-8, amazon-corretto-11, amazon-corretto-19-bin, amazon-corretto-17, zulu-8-bin, zulu-11-bin, zulu-17-bin, zulu-19-bin, jdk11-temurin, jdk17-temurin, jdk-temurin, jdk17-graalvm-ee-bin, java-openjdk-bin, liberica-jre-8-full-bin, jdk11-graalvm-bin, jdk17-graalvm-bin, jdk19-graalvm-bin, java-openjdk-ea-bin, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk8-openjdk)
- lib32-gcc-libs (lib32-gccrs-libs-git, lib32-gcc-libs-git)
- lib32-glibc (glibc-force-mmap, lib32-glibc-force-mmap, lib32-glibc-minimal-git, lib32-glibc-linux4, lib32-glibc-git)
- libx11 (libx11-git, libx11-firefox-fix)
- libxext (libxext-git)
- libxrender
- libxtst
- zlib (zlib-static, zlib-git, zlib-ng-compat-git, zlib-ng-compat)
- android-emulator (android-emulator-canary, android-emulator-dummy) (optional) – emulator has become standalone since 25.3.0
- Show 10 more dependencies...
Required by (64)
- android-aarch64-boost (make)
- android-aarch64-kirigami2 (make)
- android-aarch64-openssl
- android-aarch64-qt5
- android-aarch64-qt6-base
- android-armv7a-eabi-boost (make)
- android-armv7a-eabi-kirigami2 (make)
- android-armv7a-eabi-openssl
- android-armv7a-eabi-qt5
- android-auto-api-simulators
- android-constraint-layout
- android-google-play-apk-expansion
- android-google-play-licensing
- android-google-repository
- android-platform
- android-platform-13
- android-platform-14
- android-platform-15
- android-platform-16
- android-platform-17
- Show 44 more...
Sources (5)
insequent commented on 2022-03-21 05:58 (UTC)
qualphey commented on 2020-10-23 11:35 (UTC)
@ulidtko Ah yes, that worked. Thank you! My bad... :P
ulidtko commented on 2020-10-23 11:30 (UTC)
@qualphey as you can see from pacman -Ql android-sdk
, it installs its tools under /opt/android-sdk/tools/bin
-- so you have to ensure that dir appears on your $PATH.
qualphey commented on 2020-10-23 11:28 (UTC)
Does the sdkmanager get installed with this package?
I get bash: sdkmanager: command not found
when trying to run it? What am I missing?
relrel commented on 2020-08-23 19:19 (UTC)
@ulidtko @dreamingincode After encountering the same issue, running the following worked for me:
JAVA_HOME=/opt/android-studio/jre/ sdkmanager
It uses Android Studio's built-in java
instead of the globally installed one.
I haven't dig to the root cause (probably java
versioning issue), but I think this issue should be resolved appropriately in the sdkmanager
shell wrapper.
dreamingincode commented on 2020-06-01 18:26 (UTC)
@ulidtko I would suggest selecting an older default Java version with archlinux-java
.
ulidtko commented on 2020-06-01 16:26 (UTC)
With java-11-openjdk x86_64 the tools from android-sdk fail for me, like so:
$ sdkmanager --list Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156) at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75) at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ... 5 more
From half a day of research (I'm not really into java), I understand that the JAXB apis, including the package javax.xml.bind, have been deprecated in Java 9 & 10, and dropped altogether from JDK 11.
Okay, that's fine. But how to fix it?.. Everyone online is quick to suggest adding jakarta.xml.bind dependency to my Maven/Gradle/SBT build... But with aur/android-sdk, I don't have such thing. My attempts to --add-modules to the systemwide java were not successful.
@dreamingincode are you aware of this problem? I don't remember making any java-related customizations on this machine; and as-is, this package seems completely broken here.
dreamingincode commented on 2020-03-11 07:51 (UTC) (edited on 2020-03-11 08:50 (UTC) by dreamingincode)
@benedikt
cmdline-tools should be a different package because it's installed at android-sdk/cmdline-tools/latest, not android-sdk/tools of this package. They show up as different packages in Android Studio SDK manager as well, and they can be installed side-by-side.
Update: The new package has been published at https://aur.archlinux.org/packages/android-sdk-cmdline-tools-latest/
commented on 2020-03-10 17:54 (UTC)
@dreamingincode: This package could be updated to the new commandline tools. This is an alternative to the full android studio wit sdkmanager command line.
https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip
I would like to do this.
AndreVallestero commented on 2020-02-25 16:32 (UTC)
Please add support for aarch64. This can be simply done by adding 'aarch64' to the arch list and by replacing lib32 packages with their 64bit equivalents (gcc-libs, glibc).
Pinned Comments
dreamingincode commented on 2020-03-11 07:51 (UTC) (edited on 2020-03-11 08:50 (UTC) by dreamingincode)
@benedikt
cmdline-tools should be a different package because it's installed at android-sdk/cmdline-tools/latest, not android-sdk/tools of this package. They show up as different packages in Android Studio SDK manager as well, and they can be installed side-by-side.
Update: The new package has been published at https://aur.archlinux.org/packages/android-sdk-cmdline-tools-latest/
dreamingincode commented on 2017-04-18 11:40 (UTC) (edited on 2017-04-19 07:28 (UTC) by dreamingincode)