Android SDK - aapt error : libstdc++.so.6 cannot open shared object file

前端 未结 5 1290
故里飘歌
故里飘歌 2020-12-08 03:02

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

相关标签:
5条回答
  • 2020-12-08 03:10

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

    sudo apt-get install lib32stdc++6
    
    0 讨论(0)
  • 2020-12-08 03:19

    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 are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of 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 is not 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"
    }
    
    0 讨论(0)
  • 2020-12-08 03:23
    sudo apt-get install lib32stdc++6 lib32z1
    
    0 讨论(0)
  • 2020-12-08 03:27

    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

    0 讨论(0)
  • 2020-12-08 03:28

    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
    
    0 讨论(0)
提交回复
热议问题