Some time ago, apkbuilder was removed from the SDK tools, and a few other changes were made to the general layout of the toolsets. This proved problematic for anyone who updated their existing installations, or for those attempting to create new build environments.
The following details how to workaround these changes:1
- If you haven't already done so, download and install the Android SDK
and Android NDK
Remember that as well as the general dependencies list here
for compiling Rockbox you will also need a Java JDK of version 6 or higher installed to compile RaaA for Android.2
- Remember to export the required environment variables by appending the following to your ~/.bashrc file.
The following assumes both were installed directly to the user's home directory - adjust the paths to suit your needs:
- Download the tools_r21-linux.zip
file from the Google repository, this is the last version that included apkbuilder. Extract and merge this with ~/adt-bundle-linux-x86_64-20130522/sdk/tools making sure not to replace any existing files.4
- Some files were moved and are no longer where we expect them to be, so we need to make a couple of symlinks - adjust the paths to suit your needs:
ln -s ~/adt-bundle-linux-x86_64-20130522/sdk/build-tools/17.0.0/aapt ~/adt-bundle-linux-x86_64-20130522/sdk/platform-tools/aapt
ln -s ~/adt-bundle-linux-x86_64-20130522/sdk/build-tools/17.0.0/dx ~/adt-bundle-linux-x86_64-20130522/sdk/platform-tools/dx
That's it - we're done. We can now build RaaA for Android again, using the current SDK version.