Page MenuHomePhabricator

D5624.id18404.diff
No OneTemporary

D5624.id18404.diff

diff --git a/docs/nix_dev_env.md b/docs/nix_dev_env.md
--- a/docs/nix_dev_env.md
+++ b/docs/nix_dev_env.md
@@ -50,6 +50,7 @@
- [Xcode](./nix_mobile_setup.md#xcode)
- [Xcode settings](./nix_mobile_setup.md#xcode-settings)
- [Android development]((./nix_mobile_setup.md#android-development)
+ - [JDK (Java Development Kit)](./nix_mobile_setup.md#jdk)
- [Android Studio](./nix_mobile_setup.md#android-studio)
- [Android SDK](./nix_mobile_setup.md#android-sdk)
- [Android emulator](./nix_mobile_setup.md#android-emulator)
diff --git a/docs/nix_mobile_setup.md b/docs/nix_mobile_setup.md
--- a/docs/nix_mobile_setup.md
+++ b/docs/nix_mobile_setup.md
@@ -40,6 +40,32 @@
## Android development
+### JDK
+
+We’ll need the Java Development Kit (JDK) for Android development. We’re using [SDKMAN!](https://sdkman.io/) to manage our JDK installation.
+
+Run the following to install SDKMAN!:
+
+```
+curl -s "https://get.sdkman.io" | bash
+```
+
+Now either close and reopen your terminal window or re-source your `~/.bash_profile` (or desired shell configuration file) in order to load SDKMAN!:
+
+```
+source ~/.bash_profile
+```
+
+You can run `sdk version` to see if SDKMAN! was installed properly.
+
+Run the following to install Azul Zulu 11 with SDKMAN!:
+
+```
+sdk install java 11.0.13-zulu
+```
+
+SDKMAN! takes care of setting up the `$JAVA_HOME` environment variable to point to the newly installed JDK. You can verify this by running `echo $JAVA_HOME`.
+
### Android Studio
Start by downloading and installing [Android Studio](https://developer.android.com/studio/index.html) for your platform. When prompted to choose an installation type, select “Custom”.

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 4:07 AM (21 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2679952
Default Alt Text
D5624.id18404.diff (1 KB)

Event Timeline