Error: Cannot run aapt

后端 未结 8 1957
借酒劲吻你
借酒劲吻你 2020-12-02 15:48

When I compile an android application ( I tried with the sample ones from the sdk). I get this error:

>Error executing aapt: Cannot run program \"/home/ro         


        
8条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-02 16:22

    aapt is a 32 bit application and will fail on a 64 bit box until 32 bits are enabled and libs added

    This is current solution as of Ubuntu 16.04 / 17.10

    dpkg --print-foreign-architectures  #  if below was never run this returns nothing ... afterwards it will return : i386
    sudo dpkg --add-architecture i386
    sudo apt-get -qqy update
    sudo apt-get -qqy install libncurses5:i386 libstdc++6:i386 zlib1g:i386
    

提交回复
热议问题