I am using Android Studio on Ubuntu. I started Android Studio, created a "New Project" and started it with Shift+F10
. It threw the following error:
/home/laptop/AndroidStudioProjects/TestIt420/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.0.0/res/drawable-mdpi-v4/abc_btn_radio_to_on_mtrl_000.png
Error:Error: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/laptop/Android/Sdk/build-tools/21.1.2/aapt'' finished with non-zero exit value 127
:app:mergeDebugResources FAILED
FAILURE: Build failed with an exception.
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Information:BUILD FAILED
Also it showed me a PNG file with a circle an a transparent background with file name: abc_btn_radio_to_on_mtrl_000.png
After I just tried running the app again I now have 2 errors instead of one:
/home/laptop/AndroidStudioProjects/TestIt420/app/build/intermediates/explo ded-aar/com.android.support/appcompat-v7/22.0.0/res/drawable-hdpi- v4/abc_ic_ab_back_mtrl_am_alpha.png
Error:Error: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/laptop/Android/Sdk/build-tools/21.1.2/aapt'' finished with non-zero exit value 127
Error:Execution failed for task ':app:mergeDebugResources'.
> /home/laptop/AndroidStudioProjects/TestIt420/app/build/intermediates/explo ded-aar/com.android.support/appcompat-v7/22.0.0/res/drawable-hdpi- v4/abc_ic_ab_back_mtrl_am_alpha.png: Error: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/laptop/Android/Sdk/build-tools/21.1.2/aapt'' finished with non-zero exit value 127
Information:BUILD FAILED
Can you maybe help me in resolving the issue?
You have to install These Packages to Solve this Error Because Android SDK Still not working on UBUNTU 64 Bit.
sudo apt-get install lib32stdc++6
sudo apt-get install lib32z1
Android has not build SDK for ubuntu 64-bit yet, and from your error I can say you are using 32-bit SDK on 64-bit OS.
You need to install 32-bit libraries to run android SDK in ubuntu.
Start terminal and install following packages.
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
and
Right click on the .../AndroidSDK/sdk/build-tools/21.1.2/aapt
file, open it's Properties and make sure you have checked Allow executing file as a program in the Permissions tab.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With