且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何解决在Android / Eclipse中执行aapt的错误?

更新时间:2023-01-14 18:30:42

尝试这些命令行



sudo apt-get install libstdc ++ 6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386



运行模拟器需要额外的包:



sudo apt-get install libsdl1.2debian:i386



然后在Ubuntu 14-04之前:



apt-get install ia32-libs / p>

在Ubuntu 14.04上使用以下命令安装ia32-libs:

  sudo apt-get install libc6:i386 
sudo -i
cd / etc / apt / sources。 list.d
echodeb http://old-releases.ubuntu.com/ubuntu/ raring main restricted universe multiverse> ia32-libs-raring.list
apt-get update
apt-get install ia32-libs
rm /etc/apt/sources.list.d/ia32-libs-raring.list
apt-get update
exit
sudo apt -get install gcc-multilib


Error executing aapt.

Please check aapt is present at /home/padmakumar/android-sdk/platform-tools/aapt    NhpAndroid_tablet_k4        line 1  Android ADT Problem

Hint: On 64-bit systems, 
make sure the 32-bit libraries are installed: sudo apt-get install ia32-libs    
        line 1  Android ADT Problem

I can delete 2 errors in problem tab for temp solution or cleaning the projects or deleting the gen/bin folder and recreating or restarting works fine for temporary.

how to resolve permanently to aviod this problem? any help?

Note: I executed this command 'sudo apt-get install ia32-libs' still its asking.

try these commands line

sudo apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386

for running the emulator you need that additional package:

sudo apt-get install libsdl1.2debian:i386

then on Ubuntu pre-14-04:

apt-get install ia32-libs

On Ubuntu 14.04 use the following commands to install ia32-libs:

sudo apt-get install libc6:i386
sudo -i
cd /etc/apt/sources.list.d
echo "deb http://old-releases.ubuntu.com/ubuntu/ raring main restricted universe multiverse" >ia32-libs-raring.list
apt-get update
apt-get install ia32-libs
rm /etc/apt/sources.list.d/ia32-libs-raring.list
apt-get update
exit
sudo apt-get install gcc-multilib