Error while loading shared libraries: libz. so.1: cannot open shared object file: no such file or dir

Source: Internet
Author: User

When the android development environment is installed on Linux, the R file cannot be generated. The error message "libz. so.1" is not found .... An error is returned when aapt is executed. After a long time.


Find an article on the internet, find the library for installation, and finally solve it. Record it here ..

1. Run./aapt In the SDK directory tools to view the missing library based on the error message.

2. Run the following command to check who provided the library, as shown in figure

Yum whatprovides ld-linux.so.1

After installing all

3. Execute aapt again, and the r file can survive normally in eclipse.


In addition, you cannot install ADT in eclipse directly installed using Yum install eclipse... It took a long time .. You can download an eclpset version integrated with AD directly from the Google website.




Error while loading shared libraries: libz. so.1: cannot open shared object file: no such file or dir

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.