Android SDK 64bit and Debian amd64

As you know, it’s possible download the Android SDK for 32 and 64 bits architecture.  If you choose 64bit architecture you notice that some binaries are compiled to 32bit architecture

1
2
3
vega:$/android/sdk/platform-tools$ file aapt
aapt: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically 
linked (uses shared libs), for GNU/Linux 2.6.8, not stripped

Installing ia32-libs package was enough to solve this problem, but this package doesn’t install correctly in debian sid. It has been replace by Debian-Multiarch

 

1
2
3
4
5
6
7
8
9
10
11
12
13
vega:/home/rocapal/android/sdk/platform-tools$ aptitude install ia32-libs
Se instalarán los siguiente paquetes NUEVOS:
ia32-libs{b}
0 paquetes actualizados, 1 nuevos instalados, 0 para eliminar y 7 sin actualizar.
Necesito descargar 114 kB de ficheros. Después de desempaquetar se usarán 114 kB.
No se satisfacen las dependencias de los siguientes paquetes:
ia32-libs : Depende: ia32-libs-i386 que es un paquete virtual.
Las acciones siguientes resolverán estas dependencias
 
Mantener los paquetes siguientes en la versión actual:
1) ia32-libs [Sin instalar]
 
¿Acepta esta solución? [Y/n/q/?]

So, the solution is to install the following packages (and its dependencies)

1
$ aptitude install lib32stdc++6 lib32z1

Also you can see Debian-Multiarch that replaces to ia32-libs package. Just you have to add i386 architecture in dpkg system to install i386 dependecies that you need.

1
2
3
$ dpkg --add-architecture i386
$ aptitude update
$ aptitude upgrade

Enjoy android coding!

facebooktwittergoogle_pluslinkedinmailby feather
This entry was posted in android. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *