Ask Your Question
1

How to install Android development libraries on Fedora 20(64bit)

asked 2014-01-29 01:09:03 -0600

roshu10 gravatar image

updated 2014-01-29 05:52:44 -0600

NickTux gravatar image

Hi all, I am trying to setup the android development environment. but unable to start the emulator because of 64 bit,

I,ve checked many question in this forum: https://ask.fedoraproject.org/en/question/9556/how-do-i-install-32bit-libraries-on-a-64-bit-fedora/

but my question is:

1)should i have to install all those libraries? Since i require 32bit libraries only for android development.

2)If i try to install some of the libraries specified in other question, I am getting the following error:

Protected multilib versions: libstdc++-4.8.2-7.fc20.i686 != libstdc++-4.8.2-1.fc20.x86_64
Error: Protected multilib versions: libgcc-4.8.2-7.fc20.i686 != libgcc-4.8.2-1.fc20.x86_64
Error: Protected multilib versions: nss-softokn-freebl-3.15.4-1.fc20.i686 != nss-softokn-freebl-3.15.2-2.fc20.x86_64

Thanks for any help !

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
1

answered 2014-01-29 05:48:31 -0600

NickTux gravatar image

updated 2014-01-29 05:49:04 -0600

There is no need for a package like ia32-libs in Fedora anymore. Most of packages can be installed through the process. Yum will resolve all the dependencies. In case of a program that is not packaged on some repository, you must find the dependencies and you can install them like

sudo yum install xxx-x.fc20.i686

As for the error you receive about multilib protected , try to execute the following commands

sudo package-cleanup --dupes
sudo package-cleanup --cleandupes
sudo yum clean all 
sudo yum update

The command package-cleanup included in yum-utils package.

Specifically for Android SDK , I would recommend a VM. (i.e virtualbox) and install Fedora 32bit there and do your job without mess up the rest of the system.

Also read this guide carefully → How to setup Android Developement.

edit flag offensive delete link more
0

answered 2014-02-10 20:28:43 -0600

sergiomb gravatar image

about point 2 you may do :

yum update --setopt=protected_multilib=false

but see the problem the version of i686 and x86_64 don't match , I got:

rpm -q libstdc++
libstdc++-4.8.2-7.fc20.x86_64
libstdc++-4.8.2-7.fc20.i686

another thing Fedora already comes with android tools , adb stuff etc

repoquery android-tools -l
/usr/bin/adb
/usr/bin/fastboot
/usr/lib/systemd/system/adb.service
/usr/share/doc/android-tools
/usr/share/doc/android-tools/51-android.rules
/usr/share/doc/android-tools/NOTICE
/usr/share/doc/android-tools/OVERVIEW.TXT
/usr/share/doc/android-tools/SERVICES.TXT
/usr/share/doc/android-tools/protocol.txt
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-01-29 01:09:03 -0600

Seen: 3,713 times

Last updated: Feb 10 '14