Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
450 views
in Technique[技术] by (71.8m points)

32bit 64bit - Android studio cannot find aapt

Hi I am having trouble compiling, I get this error:

Gradle: Execution failed for task ':ElectronicComponentInventorySearch:mergeDebugResources'.

java.io.IOException: Cannot run program "/opt/android-studio/sdk/build-tools/android- 4.2.2/aapt": error=2, No such file or directory

When I use locate: /opt/android-studio/sdk/build-tools/android-4.2.2/aapt

Before I tried anything I made sure to chown the whole android-studio directory to my account and set permissions for everything to 775.

Whats up?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Aapt is a 32bit application. I am running ubuntu 64bit. I needed some additional libraries. First thing I did was update to 13.04 from 12.10. It broke chrome but this should help.

To get aapt working (this fixed my issues with the avd as well) just run these two commands:

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

From this post.

Now no more problems.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...