Could not find tools.jar when build gradle project
发布时间:2020-12-15 05:24:49 所属栏目:Java 来源:网络整理
导读:参考网址:https://stackoverflow.com/questions/45456210/could-not-find-tools-jar-when-build-gradle-project 执行: gradlew.bat clean build -x test 出错信息: Parallel execution with configuration on demand is an incubating feature. Task :com
参考网址:https://stackoverflow.com/questions/45456210/could-not-find-tools-jar-when-build-gradle-project 执行: gradlew.bat clean build -x test 出错信息: Parallel execution with configuration on demand is an incubating feature. > Task :compileJava FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:compileJava‘. > Could not find tools.jar. Please check that D:Javajre contains a valid JDK installation. 解决: 在根目录下新建一个gradle.properties,在其中加上一行即可: org.gradle.java.home=C:/path/to/your/jdk (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |