28

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

Anand Chavan
  • 4,338
  • 6
  • 23
  • 27

5 Answers5

66

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

sudo apt-get install ia32-libs 
Eren Tantekin
  • 1,461
  • 14
  • 24
3

Check this out! http://developer.android.com/sdk/installing.html#troubleshooting

dixiedude
  • 64
  • 4
2

Here is how I set it up

http://forum.xda-developers.com/showpost.php?p=19446284&postcount=62

1

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.

Diego Torres Milano
  • 65,697
  • 9
  • 111
  • 134
0

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.

Codeman
  • 12,157
  • 10
  • 53
  • 91
  • The error contains the path, you can see that there are no spaces (`/opt/eclipse/android-sdk-linux/platform-tools/adb`). –  Nov 08 '11 at 19:12
  • 2
    Possibly check out this answer, looks like a similar problem: http://stackoverflow.com/questions/7056914/android-eclipse-installation-on-ubuntu-11-04-aapt-and-adb-not-working-properly – Codeman Nov 08 '11 at 19:14