Tag Archives: android

Android on Ubuntu: IOException on aapt

As I told in a previous post, I’m setting up a new Ubuntu installation and I want to compile something for Android on it.

After installing Android SDK I got this error on my first iteration of “ant debug”

BUILD FAILED
/home/max/AndroidSDK/android-sdk-linux/tools/ant/build.xml:621: The following error occurred while executing this line:
/home/max/AndroidSDK/android-sdk-linux/tools/ant/build.xml:657: Execute failed: java.io.IOException: Cannot run program "/home/max/AndroidSDK/android-sdk-linux/platform-tools/aapt": error=2, No such file or directory

The error is in some way misleading because the binary is there, but the problem is that it’s a 32-bit executable

max@praxi:~$ ls -l /home/max/AndroidSDK/android-sdk-linux/platform-tools/aapt
-rwxr-xr-x 1 max max 929400 Jul 27 14:33 /home/max/AndroidSDK/android-sdk-linux/platform-tools/aapt

max@praxi:~$ file /home/max/AndroidSDK/android-sdk-linux/platform-tools/aapt
/home/max/AndroidSDK/android-sdk-linux/platform-tools/aapt: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped

The solution is near: we need 32-bit libraries

root@praxi:~# aptitude install ia32-libs

As always it’s a good idea to RTFM:

The Android Ant-based build system requires Ant 1.8.0

I’m setting up a new Ubuntu installation (Quantal Quetzal) and I’m going to play with some Android code on it.

The first test I did after installing the Android SDK gave me this result:

BUILD FAILED
/home/max/AndroidSDK/android-sdk-linux/tools/ant/build.xml:377: The Android Ant-based build system requires Ant 1.8.0 or later. Current version is 1.7.1

This is not what I needed, but fortunately the solution is easy enough.
Doing something like this solved my issue:

root@praxi:~# aptitude install ant=1.8.2-4build2

Done

Postphone icon

Postphone available to Russia and India in their currencies

Postphone Android AppAlong with Google Play Store opening to new Buyer’s Currencies, Postphone is now available for buying in two new countries: Russia and India.

The price is 30,00 Russian rubles (RUB) and 50,00 Indian rupees (INR).

The price is set to the smallest available!

Please take a look at this page to check this amazing Android app or find it in Google Play Store.

Postphone icon

Postphone Android App 1.0 release

Today version 1.0 of Postphone has been released. Nerver forget to call back again!

You can find the promotional page here.

Technically speaking:

  • it has been fully developed under Ubuntu 12.04 64bit
  • it has been written entirely using vim
  • everything has been tracked by git
  • the icon has been edited using SketchUp under wine
  • main and other icons, banners and featured images has been edited with Gimp
  • beta devices were all running CyanogenMod