Sunday, March 2, 2014

Android SDK Tools on Ubuntu 14.04 beta x64

Android SDK Tools require 32 bit libraries and normally you are recommended to install ia32-libs package, which is not available for Ubuntu 14.04 anymore.
$ sudo apt-get install ia32-libs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  lib32z1 lib32ncurses5 lib32bz2-1.0

E: Package 'ia32-libs' has no installation candidate
 

Android Debug Bridge (adb) 

$ ~/android-sdk-linux/platform-tools/adb
/home/dandar3/android-sdk-linux/platform-tools/adb: error while loading shared libraries: 
libstdc++.so.6: cannot open shared object file: No such file or directory

Install lib32stdc++6 package:
$ sudo apt-get install lib32stdc++6
[...]
The following NEW packages will be installed
  lib32stdc++6
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
[...]
Preparing to unpack .../lib32stdc++6_4.8.2-16ubuntu4_amd64.deb ...
Unpacking lib32stdc++6 (4.8.2-16ubuntu4) ...
Setting up lib32stdc++6 (4.8.2-16ubuntu4) ...
Processing triggers for libc-bin (2.19-0ubuntu2) ...
adb should work fine now.
$ ~/android-sdk-linux/platform-tools/adb version
Android Debug Bridge version 1.0.31

Android Asset Packaging Tool (aapt)


aapt requires both lib32stdc++6 as well as lib32z1 (which in fairness it was suggested above).

$ sudo apt-get install lib32z1
[...]
The following NEW packages will be installed
  lib32z1
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
[...]
Preparing to unpack .../lib32z1_1%3a1.2.8.dfsg-1ubuntu1_amd64.deb ...
Unpacking lib32z1 (1:1.2.8.dfsg-1ubuntu1) ...
Setting up lib32z1 (1:1.2.8.dfsg-1ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu2) ...

Testing again it should work now:
$ ~/android-sdk-linux/build-tools/19.0.2/aapt version
Android Asset Packaging Tool, v0.2


Resources:


9 comments :