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