summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-02-18 10:54:24 -0800
committerMinh Nguyễn <mxn@1ec5.org>2015-02-18 10:54:24 -0800
commit338c5bd8cdf470d29eec7ecfda1ba3a9e0ff2b8f (patch)
tree6fd66cca412ad9c34eea9382447246a3aeb2f1be /README.md
parent8ac1dccc141f3edcd3dcc9627f3b8f2766b5069e (diff)
downloadqtlocation-mapboxgl-338c5bd8cdf470d29eec7ecfda1ba3a9e0ff2b8f.tar.gz
Update README.md
The formula is called java, not jdk. Also incorporated feedback from @bleege.
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 6 insertions, 4 deletions
diff --git a/README.md b/README.md
index 865552de48..e9ae075d3a 100644
--- a/README.md
+++ b/README.md
@@ -133,7 +133,7 @@ You can then open `android/java` in Android Studio via "Import Non-Android Studi
Install Oracle JDK 7+:
- brew cask install jdk
+ brew cask install java
Install the [Android NDK Revision 10d](https://developer.android.com/tools/sdk/ndk/index.html) for 64-bit OS X:
@@ -146,9 +146,11 @@ Install [Android Studio](https://developer.android.com/sdk/installing/studio.htm
Install the Android SDK by opening Android Studio. By default, the SDK will be installed to `/usr/local/opt/android-sdk`. In case you get an error message telling you that it can't find a JVM, it's because you installed a custom Java VM from Oracle. Follow [these instructions](http://tools.android.com/recent/androidstudio1rc3_releasecandidate3released) to start Android Studio. You'll wind up setting these environment variables in your .bash_profile or similar:
- export ANDROID_HOME=/usr/local/opt/android-sdk
- export ANDROID_NDK_PATH=/usr/local/Cellar/android-ndk/r10d
- export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk
+ echo "export ANDROID_HOME=`brew --prefix android-sdk`" >> .bash_profile
+ echo "export ANDROID_NDK_PATH=`brew --cellar android-ndk`/r10d" >> .bash_profile
+ # Replace <path to JDK> with something like /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk
+ echo "export JAVA_HOME=<path to JDK>" >> .bash_profile
+ echo "export STUDIO_JDK=$JAVA_HOME" >> .bash_profile
Run: