当尝试使用gradle从Jenkins构建android应用程序时,我得到了以下错误:Please set the JAVA_HOME variable in your environment to match the location of yourresult to FAILURE
Build step 'Invoke Gradle script
尽管我已经将JAVA_HOME配置到了我认为正确的目录,但在Windows10中我还是收到了下面的错误。我知道有类似的问题,但似乎没有一个在Windows10上解决这个问题的明确解决方案。错误:This environment variable is needed torun this programJ
Environment (build 1.8.0_181-b13)配置The JAVA_HOME environment variable is not defined correctly This environment variable is needed to runthis program NB: JAVA_HOME should point to a JDK, not a JRE 'cmd&