Gradle Could not create service of type InitScriptHandler using BuildScopeServices.createInitScriptHandler()

后端 未结 22 1890
囚心锁ツ
囚心锁ツ 2020-12-05 03:39

I used gradle build command in Centos 7 terminal and I got output:

FAILURE: Build failed with an exception.

* What we         


        
22条回答
  •  -上瘾入骨i
    2020-12-05 04:25

    I got the same error, got rid of it by using the correct version of Java / JDK. I was trying to build a Java 8 project with the Java 11 JDK. Check which version of Java JDK you are using.

    To develop projects with different Java versions in parallel I now use jEnv to manage the different JDK versions: http://www.jenv.be/

提交回复
热议问题