Question

I have a fresh install of Ubuntu and Android Studio. I have installed open jdk7 (for some reason it ended up in directories suffixed "amd64" even though I am running an Intel CPU, but I guess that's just a name?) as well as some SDK files.

I then created an empty project and now I am getting an error displayed near the bottom of the window. I guess this is a Gradle error (am very new to AS)

Error:Execution failed for task ':app:mergeDebugResources'.
> /root/AndroidStudioProjects/HockeyGame/app/build/exploded-aar/com.android.support/appcompat-v7/19.1.0/res/drawable-xxhdpi/abc_ic_voice_search.png: Error: Cannot run program "/opt/android-studio/sdk/build-tools/android-4.4.2/aapt": error=2, No such file or directory

I was thinking maybe this was a file privilege problem (because aapt does indeed seem to exist), so I set the privileges to 775 recursively. And I am also starting AS with sudo (sudo sh studio.sh).

Any ideas? I am partly trying AS out in Android because I was having problems getting it to run under a cluttered Windows install (and also for the fun of it), so this is disappointing.

edit: It turned out 64-bit Ubuntu isn't fit to run 32-bit executables out of the box.

Était-ce utile?

La solution

I solved it by running

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

Reference: https://code.google.com/p/android/issues/detail?id=67155

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top