28
votes

I am new to Android and trying to setup Android Development Environment. I have followed the steps given in the official documentation but I am still getting the error below:

[2011-11-08 22:24:39 - adb]/opt/eclipse/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: wrong ELF class: ELFCLASS64

[2011-11-08 22:24:39 - adb]'adb version' failed! /opt/eclipse/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: wrong ELF class: ELFCLASS64

[2011-11-08 22:24:39 - adb]Failed to parse the output of 'adb version'

I have tried to resolve this issue by installing 3 times, but it still persists. Could any one please help me to resolve this issue?

Looking forword for helping hands.

Environment Details :

JDK : 7
Eclipse : 3.7.1
OS : Ubuntu 11.10

Thank you!

Anand Chavan

5

5 Answers

66
votes

Installing ia32-libs from the repositories will fix the issue.

sudo apt-get install ia32-libs 
1
votes

Probably you didn't follow the instructions completely:

64-bit distributions must be capable of running 32-bit applications. For information about how to add support for 32-bit applications, see the Ubuntu Linux installation notes.

0
votes

I know this sounds weird, but make sure that your Android SDK path has no spaces in it. This is a known bug for the Windows version, and has produced similar errors to this, so it's worth trying.