Skip to content

Commit

Permalink
Warn about dangers of changing JAVA_HOME (getodk#2141)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanokwa authored and lognaturel committed Apr 19, 2018
1 parent a960df4 commit 80a124e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,10 @@ A problem occurred configuring project ':collect_app'.
> Failed to notify project evaluation listener.
> Could not initialize class com.android.sdklib.repository.AndroidSdkHandler
```

Ensure that you have set your **JAVA_HOME** environment variable.

For example, on macOS:

`export JAVA_HOME="/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home"`
You may have a mismatch between the embedded Android SDK Java and the JDK installed on your machine. You may wish to set your **JAVA_HOME** environment variable to that SDK. For example, on macOS:

`export JAVA_HOME="/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home"
`

Note that this change might cause problems with other Java-based applications (e.g., if you uninstall Android Studio).

0 comments on commit 80a124e

Please sign in to comment.