1. error while loading shared libraries: zlib.so.1: cannot open shared object file: No such file or directory
sudo apt-get install lib32z1
2. error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
sudo apt-get install libstdc++6
sudo apt-get install lib32stdc++6
3. The import android.support cannot be resolved
Go to your Project's Properties
Then navigate to the Java Build Path
Then go to the Libraries
tab. There click the Add External JARs
Button on the Right pane.
There select the android-support-v4.jar
file, usually the path for the
.jar
file is :YOUR_DRIVE\android-sdks\extras\android\support\v4\android-support-v4.jar
After adding andorid-support-v4.jar Library, navigate to the Order and Export
tab and put check mark on the
android-support-v4
Library file.
After doing the above, clean the project and Build it.
Your problem will be solved.