Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Gentoo Base System release 2.2 command line install android sdk
/*My name is Shivasurya s and i had lot of trouble
while installing Android SDK on Gentoo Linux Machine.
Somehow i have configured, built my first gradle based project
Credits for Ubuntu :
i found this above gist partially helpful while doing it on Gentoo.
###install JAVA 6/7/8
you'll have to use emerge command to download and install in your system
# download android sdk
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
./android update sdk --no-ui
# set path
vi ~/.basshrc << EOT
export PATH=${PATH}:$HOME/sdk/android-sdk-linux/platform-tools:$HOME/sdk/android-sdk-linux/tools:$HOME/sdk/android-sdk-linux/build-tools/22.0.1/
source ~/.bashrc
### zip align feature uses the zlib package
error while loading shared libraries: cannot open shared object file: No such file or directory
so guide is here, if you have X64 Android SDK tool then
> emerge sys-lib/zlib
else if you have X86 based Android SDK tool then
follow this guide completely
Note : add only sys-libs/zlib abi_x86_32 package in /etc/portage/package.use/local
if it installs succesfully zlib shared library and your path is correct to Android SDK tools,
file :
your Gradle builds succesfully :) It took me around 3 hours to fix all problems and made my gradle to build the first project.
for issues/help comment below. :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.