Skip to content

1. Environment Setup

krtonga edited this page Jun 20, 2018 · 3 revisions

1. Required Installs

The following must be downloaded to setup your android environment.

Java JDK

Java is the language used for android app development.

  1. Download Java JDK.

    1. Linux, Mac, Windows x64, Windows x86
    2. and for those who need it: Windows x32
  2. Add a JAVA_HOME environment variable.

    # If you have a bash shell in mac or linux:
    export JAVA_HOME=<your-jdk-install-dir>
    export PATH=$JAVA_HOME/bin:$PATH
    

    Setting up environment variables in Windows is slightly more complicated. This turtorial has detailed instructions.

Android Studio

This is the IDE (Integrated Development Environment) used for most android development

Expect this one to take a long time... it's big! And just when you thought you were done, you'll be asked to download even more!

Download Link: https://developer.android.com/studio/

Some Notes for those using Android Studio with Windows 32x:

If you get a JAVA_HOME not found error, make sure that the JAVA JDK has been added to your PATH variable.

If you get Error:CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running:

  1. In AndroidStudio File->Project Structure->SDK Location, select your directory where the JDK is located. By default Studio uses embedded JDK but for some reason it produces error=216.
  2. Click Ok.

If you get a gradle deamon error on first sync, reduce the heap size:

  1. Open the projects gradle.properties file in android studio
  2. Added this line at end of file org.gradle.jvmargs=-Xmx1024m. If that still doesn't work try: org.gradle.jvmargs=-Xmx512m
  3. Close and reopen the project

Git (Linux + Windows only)

This is what we use for working with the open source team.

  1. Download Git: https://git-scm.com/downloads
  2. Add the full directory path to git/bin to your PATH Environment Variable. For Windows, look here and here for more detailed instructions.

2. Logins

Don't have a Git Account? Go get one! https://github.com/join

You will be sent an email to verify.

3. Recommended Configurations

Configure Git.

Type the following so you don't have to enter a password every time you interact with git via the command line:

$ git config --global credential.helper cache

4. Enable Developer Options on your Android Phone

To allow Android Studio to build

Clone this wiki locally