-
Notifications
You must be signed in to change notification settings - Fork 2
1. Environment Setup
The following must be downloaded to setup your android environment.
Java is the language used for android app development.
-
Download Java JDK.
- Linux, Mac, Windows x64, Windows x86
- and for those who need it: Windows x32
-
Add a
JAVA_HOMEenvironment variable.# If you have a bash shell in mac or linux: export JAVA_HOME=<your-jdk-install-dir> export PATH=$JAVA_HOME/bin:$PATHSetting up environment variables in Windows is slightly more complicated. This turtorial has detailed instructions.
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/
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:
- 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. - Click Ok.
If you get a gradle deamon error on first sync, reduce the heap size:
- Open the projects
gradle.propertiesfile in android studio - Added this line at end of file
org.gradle.jvmargs=-Xmx1024m. If that still doesn't work try:org.gradle.jvmargs=-Xmx512m - Close and reopen the project
This is what we use for working with the open source team.
- Download Git: https://git-scm.com/downloads
- Add the full directory path to
git/binto yourPATHEnvironment Variable. For Windows, look here and here for more detailed instructions.
Don't have a Git Account? Go get one! https://github.com/join
You will be sent an email to verify.
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
To allow Android Studio to build