When using Ubuntu64 bit (14.04), download a adt-bundle-linux-x86_64-20131030.zip, but run the Times wrong:
- Android:Gradle:Execution failed for task cannot the Run program android-studio/sdk/build-tools/android-4.2. 2/aapt error=2, not the file or directory
Compile resource times with AAPT error, prompt cannot find aapt this command, but in the SDK name exists this executable file.
Finally on the Internet search reason, found the answer: the system used is 64-bit, and the adt-bundle-linux-x86_64-20131030.zip comes with the SDK is 32-bit.
Install the Compatibility Pack to resolve:
sudo apt-get install Ia32-libs
However, if the corresponding PPA is removed from the ubuntu14.04, it is possible to encounter problems that cannot be installed.
sudo vim/etc/apt/sources.lis
Fill in the appropriate source at the end of the file:
Deb Http://archive.ubuntu.com/ubuntu/raring main restricted universe multiverse
Then execute:
sudo apt-get update
Wait for the update to complete before you execute the install command
sudo apt-get install ia32-libs.