Solve the problem that AAPT cannot compile APK, and aapt cannot compile apk

Source: Internet
Author: User
Tags aliyun

Solve the problem that AAPT cannot compile APK, and aapt cannot compile apk

Error:

Run Eclipse + ADT on Ubuntu 12.04 64-bit system and report the following error:

Error executing aapt. Please check aapt is present at /home/null/dev/sdk/build-tools/19.0.3/aapt


Cause:

32-bit library Not Installed


Solution:

Step 1. Modify the Ubuntu update source

$ sudo vi /etc/apt/sources.list
As follows:
deb http://mirrors.aliyun.com/ubuntu/ precise main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ precise-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ precise-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ precise-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ precise-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ precise main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ precise-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ precise-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ precise-proposed main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ precise-backports main restricted universe multiverse

Then run:

$ sudo apt-get clean$ sudo apt-get update --fix-missing$ sudo apt-get upgrade

Step 2. Install the 32-bit Library

sudo apt-get install ia32-libssudo apt-get install lib32z1

Restart Ecipse, and AAPT can be compiled.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.