Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio build error on ubuntu install

i have recently installed android studio on my newly installed OS ubuntu 14.10, i installed the main android studio file in my documents folder, and then downloaded and installed the sdk build tools file in the documents folder aswell and linked the two via the sdk in android studio, i also downloaded all the latest apis and build tools, however when i build my first app

Error:Error: Cannot run program "/home/user/Documents/android-sdk-linux/build-tools/21.1.1/aapt": error=2, No such file or directory

and

Error:Execution failed for task ':app:mergeDebugResources'.

/home/user/AndroidStudioProjects/Epic3/app/src/main/res/drawable-mdpi/ic_launcher.png: Error: Cannot run program "/home/user/Documents/android-sdk-linux/build-tools/21.1.1/aapt": error=2, No such file or directory

Any ideas?

Thanks

like image 978
Al Hennessey Avatar asked Jan 09 '23 09:01

Al Hennessey


1 Answers

I faced the same problem and in my case is that im running Ubuntu 64 version. I solved that running the following command line:

apt-get install -qq -y libc6:i386 libgcc1:i386 libstdc++6:i386 libz1:i386
like image 120
Emerick Avatar answered Jan 11 '23 23:01

Emerick