added info about setting ANDROID_HOME environment variable for gradle builds.

Tom Hennen 2015-03-04 18:48:23 -05:00
parent d54a46c6c3
commit f55454d42f
1 changed files with 3 additions and 1 deletions

@ -67,7 +67,9 @@ There are several different tools available for building AntennaPod. You only ha
### Building on the command-line with gradle
- You can either use the version of gradle that is installed on your system or the wrapper script `gradlew` in the project's repository. It is recommended to use the wrapper script because it will always use a version of gradle that is compatible with the project setup and it will update itself automatically if necessary.
- If you use the version of gradle that is installed on your system, make sure to use the latest version of gradle.
- You may need to set ANDROID_HOME to point to your Android SDK before running Gradle
export ANDROID_HOME=/Users/username/development/android/sdk
gradle foo
- The wrapper script can be found in the project's root folder. On Windows, you should use `gradlew.bat`, on all other operating system you should `gradlew`. You can execute the usual gradle commands by replacing the `gradle` command with `./gradlew`. For example