Skip to content

Instantly share code, notes, and snippets.

@vongosling
Last active August 29, 2015 13:56
Show Gist options
  • Save vongosling/8970307 to your computer and use it in GitHub Desktop.
Save vongosling/8970307 to your computer and use it in GitHub Desktop.
Eclipse ADT FAQ:

Ubuntu 12.04.4,Kernel 3.5.0-45-generic

Problem 1:

Failed to start emulator: Cannot run program "/usr/bin/android-studio/sdk/tools/emulator": java.io.IOException: error=2

Solution:

sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5

Problem 2:

/android-4.4/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

Solution:

sudo apt-get install lib32z1

Problem 3:

[2014-02-17 15:25:21 - Emulator] error libGL.so: cannot open shared object file: No such file or directory

Solution:

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

Problem 4:

Attache android.jar sources for Eclipse IDE

Solution:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment