Ubuntu 64 bit under the Android environment, to tell the truth, really have to spend a bit of energy, solve a problem, and come out with a new problem.
Small series yesterday just finally set up the environment of Android, this does not, just built a project, directly on the error, the following is a list of several:
1. Libstdc++.so.6:cannot open Shared object file:no such file or directory
2. Description Resource Path location Type Error executing aapt:cannot run program "XXX/BUILD-TOOLS/21.1.0/AAPT": Error =2.
A whole bunch of mistakes ...
Tools/Materials
- Ubuntu 64 bit 14.04 LTS
- Eclipse-java-luna-sr1-linux-gtk-x86_64.tar
- Networking
Method/Step
First of all, the small part to say is, AAPT need 32 bit support, so, first have to install 32-bit library, many people say press 32 bit library, immediately use: sudo apt-get install ia32-libs This command, but soon found that In 14.04, the li132-libs cannot download the installation
This is a life that needs to be used:
sudo apt-get install lib32z1
It's the king, (it's also mentioned in Eclipse's error)
Sorry about the order, the small part was forgotten at that time, please understand, but it must be executed.
PS: The proposed newly installed Ubuntu 64-bit children's shoes, all execute this command, after all, now Ubuntu under a lot of software is heavily dependent on the 32-bit library
After the last step, the system will automatically perform a series of operations (must have a net),
After the execution, the next thing to deal with the libstdc++6 problem, the same, requires 32-bit, although Ubuntu comes with 64-bit libstdc++6, but Android development still have to use 32 bit ...
Execute command:
sudo apt-get install lib32stdc++6
Select Y to continue execution
- 4
It is recommended that you restart your computer.
After restarting and then opening eclipse, creating a new Android project, you will find that there are not a lot of weird errors.
Ubuntu 64-bit Android Project error resolution, open 64-bit Ubuntu 32-bit support features