Ubuntu 12.04.4,Kernel 3.5.0-45-generic
Failed to start emulator: Cannot run program "/usr/bin/android-studio/sdk/tools/emulator": java.io.IOException: error=2
sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
/android-4.4/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
sudo apt-get install lib32z1
[2014-02-17 15:25:21 - Emulator] error libGL.so: cannot open shared object file: No such file or directory
First,locate libGL,in my X86_64 ubuntu,I got such result:
/home/von/software/adt-bundle-linux-x86_64-20131030/sdk/tools/lib/libGLES_CM_translator.so /home/von/software/adt-bundle-linux-x86_64-20131030/sdk/tools/lib/libGLES_V2_translator.so /usr/lib/x86_64-linux-gnu/libGLEW.so.1.6 /usr/lib/x86_64-linux-gnu/libGLEW.so.1.6.0 /usr/lib/x86_64-linux-gnu/libGLEWmx.so.1.6 /usr/lib/x86_64-linux-gnu/libGLEWmx.so.1.6.0 /usr/lib/x86_64-linux-gnu/libGLU.so.1 /usr/lib/x86_64-linux-gnu/libGLU.so.1.3.1 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0
Next,sudo ln -s /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0 /usr/lib/libGL.so
Attache android.jar sources for Eclipse IDE
Install plugin Android Source by going to Help->Install New Software-> add this site: "http://adt-addons.googlecode.com/svn/trunk/source/com.android.ide.eclipse.source.update/". Select Android Sources from the list, click Next, and install like usual. Restart Eclipse when prompted.
If sources are still not attached, attach them manually. You will find the sources in the plugin folder usually ECLIPSE_PATH\plugins\com.android.ide.eclipse.source_MAY_BE_VARY\VERSION Depending of the version of Android, they'll be in the different folders. (eg: for Android 4.4 the sources are in folder named 14). Sources will be in source.zip archive.