title: Gradle: Could not determine java version from '11.0.2'
body: <p>I ran the following comment:</p>
  <pre><code>./gradlew app:installDebug
  </code></pre>
  <p>only to be met with the log:</p>
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  Could not determine java version from '11.0.2'.
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  
  * Get more help at https://help.gradle.org
  </code></pre>
  <p>My version of gradle is 5.1.1:</p>
  <pre><code>------------------------------------------------------------
  Gradle 5.1.1
  ------------------------------------------------------------
  
  Build time:   2019-01-10 23:05:02 UTC
  Revision:     3c9abb645fb83932c44e8610642393ad62116807
  
  Kotlin DSL:   1.1.1
  Kotlin:       1.3.11
  Groovy:       2.5.4
  Ant:          Apache Ant(TM) version 1.9.13 compiled on July 10 2018
  JVM:          11.0.2 (Oracle Corporation 11.0.2+9-LTS)
  OS:           Mac OS X 10.13.6 x86_64
  </code></pre>
  <p>I'm not sure how to proceed (I tried upgrading/downgrading, but nothing has worked so far).</p>
  <p><strong>UPDATE:</strong> When I ran <code>./gradlew --version</code>, I got the following:</p>
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  Could not determine java version from '11.0.2'.
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  
  * Get more help at https://help.gradle.org
  </code></pre>
  <p>My <code>.../gradle/wrapper/gradle-wrapper.properties</code> contains the following including <code>distributionUrl=.../gradle-4.1-rc-1-all.zip</code>:</p>
  <pre><code>distributionBase=GRADLE_USER_HOME
  distributionPath=wrapper/dists
  zipStoreBase=GRADLE_USER_HOME
  zipStorePath=wrapper/dists
  distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-rc-1-all.zip
  </code></pre>