Skip to content

Commit

Permalink
doc: Add hints for configuring ANDROID_HOME
Browse files Browse the repository at this point in the history
Signed-off-by: utzcoz <[email protected]>
  • Loading branch information
utzcoz committed Jan 28, 2025
1 parent d3347bf commit 5135919
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/building-robolectric.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,25 @@ Robolectric's [integration tests][robolectric-integration-tests] require Android
installed and specific SDK versions to be installed. Please check the relevant modules to know which
versions to install.

### Configure necessary environments

#### System environment `ANDROID_HOME`

Current Robolectric repository requires system environment `ANDROID_HOME` to retrieve the official
`android.jar` for internal validation.

For macOS, there are some potential configuration files that Android Studio might recognize:

1. `~/.bash_profile`.
2. `~/.zprofile`.

#### Install required `android.jar`

Current Robolectric repository requires `android-34.jar` installed in
`$ANDROID_HOME/platforms/android-34/android.jar`.

The simplest way is to use Android Studio's `SDK Manager` to install it.

## Install Git and OpenJDK 17

JDK 17 is currently required to build Robolectric. Newer versions of the JDK (e.g. 21) will likely
Expand Down

0 comments on commit 5135919

Please sign in to comment.