:rg: | Easy install is to add [[multilib]] to your /etc/pacman.conf file then through aur install android-sdk |
Chroot is not required when using [[multilib]]. But this is a nice tutorial on chroot, move to own topic sometime
Quick setup instructions for the Android SDK on ArchLinux 64bit.Unfortunately several parts of the Android SDK do not run properly on 64bit linux. One such part is the mksdcard script used in the Virtual Devices section of the Android GUI, so building Virtual Devices doesn't work, and who knows what else.So to start developing for android in archlinux 64bit, you must first install the 32 bit libraries. In ubuntu this is a piece of cake, just apt-get install lib32 or something like that. In arch linux its a bit harder. I have taken most of this 32bit guide from https://wiki.archlinux.org/index.php/Install_bundled_32-bit_system_in_Arch64 and I have also contributed back to that wiki. This is a quick and dirty version of that wiki thats geared toward getting the Android SDK running. Install 32bit chroot on 64bit ArchLinux[-][--]Note, this entire section is done as root, and you must chroot into your new /opt/arch32 using root also, chroot does not allow chrooting by a non-root user
Installing Android SDK, JDK, Eclipse within 32bit Chroot[-][--]Now that you have a 32bit chroot environment on your 64bit ArchLinux installation, you can install jdk, eclipse and the Android SDK as usual, But you must be inside your chroot. Don't install these packages on your regular 64bit environment, they (Android SDK) won't work.To install these packages in 32bit, from your standard 64bit system, run as root: chroot /opt/arch32, then follow the ArchLinux Android instrutions below! You won't have to use sudo in the commands below, because your in your chroot as root anyway. |