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
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
Related
i already installed the build tools 23.0.1.but i got this error.
java.io.IOException: Cannot run program "/root/Android/Sdk/build-tools/23.0.1/aapt": error=2, No such file or directory
First make sure there is respective file exist or not, then please try this some action, that might solve your problem:
update latest android sdk tools
or
clean and rebuild after sync build.gradle
or
invalid cache /restart
if you are using jenkins then try this command in terminal: sudo apt-get install lib32stdc++6 lib32z1
if all the option didn't work just follow this link: Ant debug and ant release failed and "aapt" IOException error=2, No such file or directory" why can't I build my gradle on jenkins?
Hope this will help for you.
I was trying to install SDK tools (tools_r25.2.5-linux) downloaded from follwing link https://dl.google.com/android/repository/tools_r25.2.5-linux.zip on my Linux Ubuntu 16.04.
I run both the following command for installation
./android update sdk
sudo ./android update sdk
but the installation is stopping and giving this error
also ~./android/androidtool.cfg (both /root/.android and /home/user/.android directory) file contains following data
http.proxyPort=proper_port
http.proxyHost=proper_proxy
sdkman.show.update.only=true
sdkman.ask.adb.restart=false
sdkman.force.http=true
what issue is causing the problem? how can i solve this?
I'm trying to run a Gradle build within a Docker Ubuntu machine.
The application i'm compiling is supposed to generate an .apk file and so I'm using the aapt packager which comes as part of the Android SDK build-tools which I've installed using the following command:
android update sdk -u -a -t 7 (Android SDK Build-tools, revision 23.0.3)
But then, when I run Gradle it fails with the following error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':Company-ServicesSDK:processReleaseResources'.
> A problem occurred starting process 'command '/Users/itai/repos/Company-Android_fork/.gradle/android-sdk-linux/build-tools/23.0.3/aapt''
Through my Macbook I'm able to run the aapt and it works properly but from within the Docker machine, when I try to run it, I get:
bash: ./aapt: No such file or directory
Running file aapt from my Mac:
aapt: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, not stripped
Anyone knows why it happens and how to solve it?
If it interest anyone, I found that in order to fix this issue I had to install the following packages:
lib32z1
gcc-multilib
make
After installing these packages, running aapt gave me the proper output.
I just installed android studio on linux , configured the SDK and installed the building tools now when I try to sync with gradle or (build the app) it fails and throws this error :
Error:Execution failed for task ':app:mergeDebugResources'.
/home/user_name/AndroidStudioProjects/project_name/app/src/main/res/drawable-hdpi/ic_launcher.png: Error: Cannot run program "/home/user_name/Android/Sdk/build-tools/21.1.2/aapt": error=2, No such file or directory
Error:Error: Cannot run program "/home/user_name/Android/Sdk/build-tools/21.1.2/aapt": error=2, No such file or directory
/home/user_name/AndroidStudioProjects/project_name/app/src/main/res/drawable-hdpi/ic_launcher.png
I tried to change the ' buildToolsVersion ' in my gradle file and it gave me the same error for 21.1.2 , 1 , 0 also.
I solved the problem by running those commands
$ sudo apt-get install lib32stdc++6
$ sudo apt-get install lib32z1
Ubuntu can't run the aapt on 64 bit before installing this packages
EDIT 19-04-2016 :
Android Studio 2 have the installation guide updated with those packages and bunch more to compile on 64-bit machines correctly
$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
I had the same issue even after trying out the accepted solution. In my case the gradle build tool version that I've specified was not installed on my debian system. It worked like a charm after I changed the buildToolVersion to the installed version which was (23.0.2)
I making a small game in python with pygame.
I wanted to make the game available for android.
Hopefully, there was PGS4A for this
After doing the configuration I had to build it.
So I just typed the command:
python android.py build ~/project/programming/python/gameEngine release install
And I ended up with this error:
BUILD FAILED
/home/turquoisepotato/project/programming/python/pgs4a-0.9.6/android-sdk/tools/ant/build.xml:570: The following error occurred while executing this line:
/home/turquoisepotato/project/programming/python/pgs4a-0.9.6/android-sdk/tools/ant/build.xml:622: The following error occurred while executing this line:
/home/turquoisepotato/project/programming/python/pgs4a-0.9.6/android-sdk/tools/ant/build.xml:658: Execute failed: java.io.IOException: Cannot run program "/home/turquoisepotato/project/programming/python/pgs4a-0.9.6/android-sdk/platform-tools/aapt" (in directory "/home/turquoisepotato/project/programming/python/pgs4a-0.9.6/android-sdk/extras/google/play_licensing/library"): error=2, No such file or directory
What do I do with this. I'm lost.
I'm using crunch bang linux 11.
You're probably using a 64-bit OS, while the binaries are compiled against 32-bit libraries.
I'm not familiar with CrunchBang's repositories, but you can probably try
sudo apt-get install libc6:i386 libstdc++6:i386 zlib1g:i386 lib32ncurses5
and then run the installer again.
For some reason, this is a common problem that usually occurs on Windows with pgs4a 0.9.6.
Take a look at this.
To make sure that the directory structure of the unzipped file is the same as the screenshot.
You do not have a full android-sdk installed. You need the missing files that the error refers to. You can either roll-back to pgs4a 0.9.4, which doesn't use those licensing files or reinstall android-sdk
craig#ubuntu-desktop:~/Documents/python/pgs4a-0.9.6$ cd android-sdk/
craig#ubuntu-desktop:~/Documents/python/pgs4a-0.9.6/android-sdk$ ls
add-ons extras platforms platform-tools SDK Readme.txt temp tools
craig#ubuntu-desktop:~/Documents/python/pgs4a-0.9.6/android-sdk$ cd extras/
craig#ubuntu-desktop:~/Documents/python/pgs4a-0.9.6/android-sdk/extras$ ls
google
craig#ubuntu-desktop:~/Documents/python/pgs4a-0.9.6/android-sdk/extras$ cd google/
craig#ubuntu-desktop:~/Documents/python/pgs4a-0.9.6/android-sdk/extras/google$ ls
play_apk_expansion play_licensing
craig#ubuntu-desktop:~/Documents/python/pgs4a-0.9.6/android-sdk/extras/google$ cd play_licensing/
craig#ubuntu-desktop:~/Documents/python/pgs4a-0.9.6/android-sdk/extras/google/play_licensing$ ls
library LICENSE.txt README.txt sample source.properties test
craig#ubuntu-desktop:~/Documents/python/pgs4a-0.9.6/android-sdk/extras/google/play_licensing$
This link may help.
http://discussion.pychildren.org/t/windows-installation/10
To fix it go to this site http://ady.my/viewer/ and, in the section build, download the most recent version of build-tools. Extract the files 'aapt' and 'dx' and the directory 'lib' and move these all for the especified folder on the terminal /home/turquoisepotato/project/programming/python/pgs4a-0.9.6/android-sdk/platform-tools.
The code will be similar with this below:
mv aapt dx lib /home/turquoisepotato/project/programming/python/pgs4a-0.9.6/android-sdk/platform-tools
But the PGS4A is obselete. I suggest for you, use the Python for Android, that you find in this link: http://python-for-android.readthedocs.org/en/latest/