I have Fedora 20 64-bits, and I have a problem with Android Development Tools.
When I try to run project I have these errors:
[2014-05-11 22:08:03 - TestAp] /home/damian/adt-bundle-linux-x86_64-20140321/sdk/build-tools/android-4.4.2/aapt:
error while loading shared libraries: libstdc++.so.6: cannot open
shared object file: No such file or directory
[2014-05-11 22:08:03 - appcompat_v7] /home/damian/adt-bundle-linux-x86_64-20140321/sdk/build-tools/android-4.4.2/aapt:
error while loading shared libraries: libstdc++.so.6: cannot open
shared object file: No such file or directory
I know that my question is also writing here but the solutions is not working with Fedora 20.
I'm not totally sure about Fedora 20, but I had this same problem in Ubuntu 14.04 and installing these libraries fixed it.
sudo apt-get install lib32stdc++6 lib32z1 lib32z1-dev
See this post:
Android SDK - aapt error : libstdc++.so.6 cannot open shared object file
On installing NDK, on RedHat x64 these commands was helpful for me:
yum update
yum install libstdc++.i686
yum install compat-libstdc++-33.i686
Os:
[root#VM-Lin-CentOS ~]# cat /etc/redhat-release
CentOS release 6.6 (Final)
Related
I downloaded a nexus 4 x86-x64 image on my x64 ubuntu i5 laptop. Here are the error lines:
6:22:45 PM EmptyThrowable: /home/youssef/Android/Sdk/tools/mksdcard:
error while loading shared libraries: libgcc_s.so.1: cannot open
shared object file: No such file or directory
6:26:22 PM EmptyThrowable: /home/youssef/Android/Sdk/tools/mksdcard:
error while loading shared libraries: libgcc_s.so.1: cannot open
shared object file: No such file or directory
I had this error. I tried to find fix and found on askubuntu.com
apt-get install gcc-multilib
This fix solved this problem for me! Here it is!
Assuming you are using a Debian derivative
$ sudo apt-get install libgcc1:i386
to verify the libraries used by mksdcard
$ ldd /path/to/Android/Sdk/tools/mksdcard
linux-gate.so.1 => (0xf77e4000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf779c000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf75ed000)
/lib/ld-linux.so.2 (0x56629000)
So I get the following error when creating a new project on Android Studio 0.5.2 on Ubuntu 13.04 64-bit and trying to run it on a physical device:
Information:/home/juan/Documents/android-studio/sdk/build-tools/android-4.4.2/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
Error:Execution failed for task ':app:mergeDebugResources'.
> Error: Failed to run command:
/home/juan/Documents/android-studio/sdk/build-tools/android-4.4.2/aapt s -i
/home/juan/AndroidStudioProjects/MyApplication4/app/build/exploded-aar/com.android.support/appcompat-v7/19.0.1/res/drawable-hdpi/abc_list_selector_disabled_holo_light.9.png -o /home/juan/AndroidStudioProjects/MyApplication4/app/build/res/all/debug/drawable-hdpi/abc_list_selector_disabled_holo_light.9.png
Error Code:
127
Output:
/home/juan/Documents/android-studio/sdk/build-tools/android-4.4.2/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
I've got the same setup (AS 0.5.2) on a MacBook Pro and Gradle completes successfully with no errors at all, so something must be wrong. I also had to install 32-bit versions of a couple libraries to get adb working on my 64-bit Ubuntu. Maybe that's whats going on here? Any help would be appreciated.
EDIT Also tried installing the following libraries:
$sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
No luck.
fixed it by reinstalling
sudo apt-get install lib32z1 lib32z1-dev
Thanks anyway!
I have a 64 bit Ubuntu, and I resolved the problem by installing
the following packages
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
http://developer.android.com/sdk/installing/index.html
I am using Fedora 17 64 bit operation system. I got following error even after installing 32 bit shared library.
[2013-03-22 19:19:29 - adb] /usr/src/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[2013-03-22 19:19:29 - adb] 'adb version' failed!
/usr/src/android-sdk-linux/platform-tools/adb:
error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[2013-03-22 19:19:29 - adb] Failed to parse the output of 'adb version':
I had tried installing following library but it still didn't work
yum install ncurses-libs.i686
Loaded plugins: langpacks, presto, refresh-packagekit
No package ncurses-libs.i686 available.
Error: Nothing to do
Even After trying following command it didn't work.
yum install ncurses-libs.i686 libstdc++.i686 libgcc.i686
Loaded plugins: langpacks, presto, refresh-packagekit
updates/metalink | 3.6 kB 00:00
updates | 4.6 kB 00:00
updates/primary_db | 7.9 MB 00:24
No package ncurses-libs.i686 available.
Package libstdc++-4.7.2-2.fc17.i686 already installed and latest version
Package libgcc-4.7.2-2.fc17.i686 already installed and latest version
Nothing to do
If you are running a 64-bit distribution on your development machine, you need to install the ia32-libs package using apt-get::
apt-get install ia32-libs
For more information http://developer.android.com/sdk/installing/index.html.
try this command :
yum install ncurses-libs.i686 libstdc++.i686 libgcc.i686
This is happening because Android SDK is a 32bit application and require some 32bit shared libraries,
You can fixed with:
$ sudo apt-get install ia32-libs
See here : Android SDK — Linux
I am on centos and following dependencies will resolve android build issue
yum install ncurses-libs.i686 libstdc++48.i686 libgcc.i686 zlib.i686
I am getting following error while compiling Android on ubuntu 11.10
target arm C: libc <= bionic/libc/bionic/pthread.c
arm-linux-androideabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libc_intermediates/bionic/pthread.o] Error 1
Any Clue?
It can't find cc1. On my fresh install of Ubuntu 11.10 it's installed but not in my path. Try adding it manually to your path.
export PATH=<pathtoitgoeshere>:$PATH
On my Ubuntu, it was found at
/usr/lib/gcc/i686-linux-gnu/4.6.1/cc1
But you can find it for yours by using
gcc -print-prog-name=cc1
I have spent about a day to find root cause of this: arm-linux-androideabi-gcc: error trying to exec 'cc1': execvp: No such file... and others issues. The issue was that I unpacked NDK and SDK with 7z which removed executable permission for all binaries and Eclipse was not able to start cc1. Once I unpacked tar files of SDK and NDK using tar, everything started working well.
PS. I hope it will safe a day for others.
I encountered this problem after upgrading from Ubuntu 12.04 => 14.04.
Seems like the build-essential package wasn't upgraded properly. For me, I was able to fix by doing
sudo apt-get purge gcc
sudo apt-get install gcc
I am struggling mightily with installing ADT (Android Dev Tools) on Eclipse in Fedora 16 OS, 64-bit.
Eclipse itself is running fine.
As instructed, I first installed the regular Android SDK, the OS-level toolkit. That went smoothly and I was able to use the Android app within the tools dir.
In Eclipse, it was a little more difficult because I first had to install GWT or google-related tools, which required a core Eclipse Indigo update of WST. Finally, the ADT install reported success.
However, every time when opening Eclipse, it gives me a multitude of popups regarding libncurses.so.5 and the following log:
[2012-04-04 02:06:35 - adb] /opt/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[2012-04-04 02:06:35 - adb] 'adb version' failed!
/opt/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[2012-04-04 02:06:35 - adb] Failed to parse the output of 'adb version':
Standard Output was:
Error Output was:
/opt/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[2012-04-04 02:06:35 - adb] /opt/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[2012-04-04 02:06:35 - adb] 'adb version' failed!
/opt/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[2012-04-04 02:06:35 - adb] Failed to parse the output of 'adb version':
Standard Output was:
Error Output was:
/opt/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
When I do try to open Android SDK Manager (under Window), the plugin does open but the window has no close button anywhere (unlike the same one at the OS-level, which also looks the same) so the only way to get out of it is to find the Eclipse PID and kill it.
This solved the problem entirely:
yum install ncurses-libs.i686 libstdc++.i686 libgcc.i686
This is happening because Android SDK is a 32bit application and require some 32bit shared libraries,
I had same issue on Ubuntu 64 bits, and fixed with:
$ sudo apt-get install ia32-libs
Install just libncurses5:
$ sudo apt-get install libncurses5:i386
ia32-libs will install much unnecessary libs.
yaourt -S multilib/lib32-ncurses
for ArchLinux
You probably don't have libncurses5 installed.
Try
rpm --install ncurses-libs
had similar issue on centos:
./adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
did the following:
yum install ncurses ncurses-devel ncurses-libs ncurses-libs.i686 ncurses-devel.i686
And the issue fixed.
This tip from Tim Mattison's blog did it for me under Debian Wheezy:
sudo apt-get install lib32ncurses5 lib32stdc++6