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
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)
I use Ubuntu 14.04 LTS.
My JDK version is 1.8.0_31.
I downloaded Android Studio archive, unpacked it and ran a studio.sh file. But every time the installation begins an error occurs:
Refresh Sources:
Failed to fetch URL http ://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: File not found
Fetched Add-ons List successfully
Refresh Sources
Failed to fetch URL http ://dl-ssl.google.com/android/repository/repository-10.xml, reason: File not found
Refresh Sources:
Failed to fetch URL http ://dl-ssl.google.com/android/repository/repository-10.xml, reason: File not found
There is nothing to install or update.
The following SDK components were not installed: build-tools-21.1.1, source-21, sys-img-x86-addon-google_apis-google-21, extra-android-m2repository, android-21, extra-google-m2repository, addon-google_apis-google-21, platform-tools
Moreover, when I run the studio.sh file following text appears in terminal:
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0
Also I tried to install the Android Studio from Paolo Rotolo's repository, but the same problem occurs.
I am rookie in Ubuntu, so I hope only for your help.
I also met this problem. Even I can download the xml files from browser, the android update sdk process keep reporting file not found. A search from google leads me to here:
https://code.google.com/p/android/issues/detail?id=76268
The first anwser reminds me of permission problem of ~/.android. I checked, and found that this hidden directory is not owned by me. Change the owner of the directory solve the problem.
Its not that tough actually, just follow the following steps:
first of all make sure your ubuntu is uptodate. open >Unity>Software updater.
Install latest Jdk - in my case its Java8
Installing java
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
Make it default version
sudo apt-get install oracle-java8-set-default
Installing Android Studio
Download Android Studio from here, use All Android Studio Packages
Extract the archive file into an appropriate location for your applications, eg: /opt. Use the filename of your downloaded archive, in my example android-studio-ide-141.2178183-linux.zip
sudo unzip android-studio-ide-141.2178183-linux.zip -d /opt
To launch Android Studio, navigate to the /opt/android-studio/bin directory in a terminal and execute ./studio.sh. Or use a desktop file, see below. Make sure you type "./studio.sh"
You may want to add /opt/android-studio/bin to your PATH environmental variable so that you can start Android Studio from any directory.
sudo studio.sh
running it as root solved for me
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)
I'm having some trouble running a Phonegap imported project on my laptop with Debian.
I have already installed Eclipse and the plug-in for Android and everything seems to work fine until here.
I have added this line to my .bashrc file:
export PATH=${PATH}:/home/s/android-sdks/platform-tools/
I choose new Android project from existing file, in Eclipse, and then I load the code of the project. But when I try to execute it, I get this error message:
[2013-06-13 18:12:16 - MyProject] Android Launch!
[2013-06-13 18:12:16 - MyProject] The connection to adb is down, and a severe error has occured.
[2013-06-13 18:12:16 - MyProject] You must restart adb and Eclipse.
[2013-06-13 18:12:16 - MyProject] Please ensure that adb is correctly located at '/home/s/android-sdks/platform-tools/adb' and can be executed.
If I try to execute the command: adb server-start in the terminal, I get this message:
adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
Did I miss something? ADB is right, I do not have the file libncurses.so.5 anywhere on my computer even though I have already installed all the 32-bit compatible libraries (my machine is 64-bit).
You need the 32bits version of ncurses package,
sudo apt-get install lib32ncurses5
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