Skip to content Skip to sidebar Skip to footer

Android Sdk - Aapt Error : Libstdc++.so.6 Cannot Open Shared Object File

I was creating a new project out of nothing, for testing purpose, leaving all parameter to default (I didn't made any code change), on a new ADT installation (Ubuntu Gnome 14.04 LT

Solution 1:

sudo apt-get install lib32stdc++6 lib32z1

Solution 2:

On my 64-bit Ubuntu 14.04 desktop, this was all I needed:

sudo apt-get install lib32stdc++6

Solution 3:

I too have a 64-bit Ubuntu 14.04 desktop, and the correct answer for that setup is indeed:

sudo apt-get install lib32stdc++6

Solution 4:

In my Ubuntu 16.04 , I am not able to install "All" the libs ( sudo apt-get install lib32stdc++6 ) with message saying:

$ sudo apt-get install libgl1-mesa-dev:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you areusing the unstable
distribution that some required packages have not yet been created
or been moved outof Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgl1-mesa-dev:i386 : Depends: libgl1-mesa-glx:i386 (=11.2.0-1ubuntu2) but it isnot going to be installed
E: Unable to correct problems, you have held broken packages.

After some digging, I found I was using the aapt with SDK 19. ( android-sdk-linux/build-tools/19.x.y/aapt )

switch the appt from sdk 19 to sdk 24 worked for me.

by editing the corresponding gradle file, change the buildToolsVersion from 19 to 24.0.1:

android {
    buildToolsVersion "24.0.1"
}

Solution 5:

i'm using ubuntu 15.04 version.I had the same problem. I had already installed ia32-libs package(which has now changed to lib32z1 lib32ncurses5 package) when i tried using command

sudo apt-get install lib32stdc++6 lib32z1 lib32z1-dev

i got a list of lib32stdc++6 packages which might solve the problem but this command wasn't able to correct the problem. so i just installed lib32stdc++6 package by using command

sudo apt-get install lib32stdc++6

this worked perfectly for me

Post a Comment for "Android Sdk - Aapt Error : Libstdc++.so.6 Cannot Open Shared Object File"