Skip to content

Commit 6a2b7d3

Browse files
Alex-MSFTryantrem
andauthored
Update readme to include reference to JDK 13 for Mac Dev environments (#46)
* Update readme to include reference to JDK 13 for Mac Dev environments. * Update README.md Co-authored-by: Ryan Tremblay <[email protected]> Co-authored-by: Ryan Tremblay <[email protected]>
1 parent 2f730da commit 6a2b7d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,14 @@ pod install --repo-update
5252

5353
### **Configuring a Mac Dev Environment**
5454

55-
**Required Tools:** [Android Studio](https://developer.android.com/studio/) (including NDK 21.3.6528147), [CMake](https://cmake.org/), [Ninja](https://ninja-build.org/)
55+
**Required Tools:** [Android Studio](https://developer.android.com/studio/) (including NDK 21.3.6528147), [CMake](https://cmake.org/), [Ninja](https://ninja-build.org/), [JDK 13](https://www.oracle.com/java/technologies/javase-jdk13-downloads.html)
5656

5757
- The `PATH` environment variable must include the path to adb (typically ~/Library/Android/sdk/platform-tools/).
5858
- The `PATH` environment variable must include the path to Ninja, or Ninja must be [installed via a package manager](https://github.com/ninja-build/ninja/wiki/Pre-built-Ninja-packages).
5959
- The `ANDROID_HOME` environment variable must be defined (typically ~/Library/Android/sdk).
6060
- The `ANDROID_SDK_ROOT` environment variable must be defined (typically ~/Library/Android/sdk).
6161
- The `ANDROID_AVD_HOME` environment variable must be defined if you plan to use Android emulators (typically ~/.android/avd).
62+
- The `JAVA_HOME` environment variable must be defined to point to the correct version of the JDK (typically /usr/libexec/java_home -v 13).
6263

6364
You can typically configure your environment by editing `~/.zshrc` and adding the following:
6465

@@ -68,6 +69,7 @@ export PATH=$PATH:~/path_to_ninja_binary/ # Only for manual installations of Nin
6869
export ANDROID_HOME=~/Library/Android/sdk
6970
export ANDROID_SDK_ROOT=~/Library/Android/sdk
7071
export ANDROID_AVD_HOME=~/.android/avd
72+
export JAVA_HOME=$(/usr/libexec/java_home -v 13)
7173
```
7274

7375
### **Configuring a Windows Dev Environment**

0 commit comments

Comments
 (0)