Skip to content

Instantly share code, notes, and snippets.

Embed
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 : https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7
i found this above gist partially helpful while doing it on Gentoo.
*/
###install JAVA 6/7/8
http://www.dowdandassociates.com/blog/content/howto-install-java-gentoo/
you'll have to use emerge command to download and install in your system
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
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/
EOT
source ~/.bashrc
### zip align feature uses the zlib package
error while loading shared libraries: libz.so.1: 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
https://wiki.gentoo.org/wiki/Multilib_System_without_emul-linux_Packages
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,
with
file : local.properties
sdk.dir=/path/to/your/android-linux-sdk
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.