Skip to content

Instantly share code, notes, and snippets.

@vongosling vongosling/gist:8970307
Last active Aug 29, 2015

What would you like to do?
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": error=2


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

Problem 2:

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


sudo apt-get install lib32z1

Problem 3:

[2014-02-17 15:25:21 - Emulator] error 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/ /home/von/software/adt-bundle-linux-x86_64-20131030/sdk/tools/lib/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/mesa/ /usr/lib/x86_64-linux-gnu/mesa/

Next,sudo ln -s /usr/lib/x86_64-linux-gnu/mesa/ /usr/lib/

Problem 4:

Attache android.jar sources for Eclipse IDE


Install plugin Android Source by going to Help->Install New Software-> add this site: "". 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\\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 archive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.