Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

211
Visualizações
aapt missing but its there

I had to reinstall ubuntu-14.04-64 due to reasons.

After this reinstall, when I try to build my android projets, I get a bunch of these lines (among others) in output:

java.io.IOException: Cannot run program "/home/gps/Android/Sdk/build-tools/23.0.2/aapt": error=2, No such file or directory

Now, I know this file exists in my setup because this:

gps@gps-HP-ProBook-4540s:~$ ls -l /home/gps/Android/Sdk/build-tools/23.0.2/aapt
-rwxrwxr-x 1 gps gps 1146608 Jan  4 18:47 /home/gps/Android/Sdk/build-tools/23.0.2/aapt
gps@gps-HP-ProBook-4540s:~$ file  /home/gps/Android/Sdk/build-tools/23.0.2/aapt
/home/gps/Android/Sdk/build-tools/23.0.2/aapt: ELF 32-bit LSB  shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=fc8aded5418584519d59f2133e81184fe3d4bdfd, not stripped
gps@gps-HP-ProBook-4540s:~$ 

I have installed all sdk tools from v19 onwards. Changing project settings to any of them shows same error.

Also, trying to execute the file directly gives same error:

gps@gps-HP-ProBook-4540s:~$ /home/gps/Android/Sdk/build-tools/23.0.2/aapt
bash: /home/gps/Android/Sdk/build-tools/23.0.2/aapt: No such file or directory

Can someone suggest a solution to this problem?

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

Problem solved as follows:

Issue was missing 32 bit libraries, libc and zlib in this case. Installed using following :

sudo apt-get install libc6:i386
sudo apt-get install zlib1g-dev:i386

Thanks @Joni for clear directions.

over 4 years ago · Santiago Trujillo Relatório

0

You're probably missing some dynamic link library that the program needs. Run this command to list the libraries it uses and install those that are missing:

ldd /home/gps/Android/Sdk/build-tools/23.0.2/aapt
over 4 years ago · Santiago Trujillo Relatório

0

Solution as of Ubuntu 16.04 / 16.10 to enable 32 bit binaries to run on 64 bit host

sudo dpkg --add-architecture i386
sudo apt-get -qqy update
sudo apt-get -qqy install libncurses5:i386 libstdc++6:i386 zlib1g:i386
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda