java - Build Error in Gradle Project Creation -
i'm using netbeans 8 newest gradle plugin , time try create project (either root or standalone) build error following exception. build.gradle , common.gradle both empty except single \
character. i've tried switching name of project doesn't have special characters, uninstalling , reinstalling gradle plugin, restarting netbeans, , creating other projects. how can fix problem?
exception:
issue 1 -------- requested project: c:\users\sarah\desktop\ng stack trace: org.gradle.tooling.buildexception: not run build action using gradle distribution 'https://services.gradle.org/distributions/gradle-2.4-bin.zip'. @ org.gradle.tooling.internal.consumer.resulthandleradapter.onfailure(resulthandleradapter.java:57) @ org.gradle.tooling.internal.consumer.async.defaultasyncconsumeractionexecutor$1$1.run(defaultasyncconsumeractionexecutor.java:57) @ org.gradle.internal.concurrent.executorpolicy$catchandrecordfailures.onexecute(executorpolicy.java:54) @ org.gradle.internal.concurrent.stoppableexecutorimpl$1.run(stoppableexecutorimpl.java:40) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) @ org.gradle.tooling.internal.consumer.blockingresulthandler.getresult(blockingresulthandler.java:46) @ org.gradle.tooling.internal.consumer.defaultbuildactionexecuter.run(defaultbuildactionexecuter.java:46) @ org.netbeans.gradle.model.genericmodelfetcher.getmodels(genericmodelfetcher.java:166) @ org.netbeans.gradle.project.model.nbgradle18modelloader$projectmodelfetcher.getmodels(nbgradle18modelloader.java:360) @ org.netbeans.gradle.project.model.nbgradle18modelloader.loadmodels(nbgradle18modelloader.java:65) @ org.netbeans.gradle.project.model.gradlemodelloader.loadmodelwithprogress(gradlemodelloader.java:491) @ org.netbeans.gradle.project.model.gradlemodelloader.access$600(gradlemodelloader.java:70) @ org.netbeans.gradle.project.model.gradlemodelloader$6.run(gradlemodelloader.java:360) @ org.netbeans.gradle.project.tasks.gradledaemonmanager.runnonblockinggradletask(gradledaemonmanager.java:36) @ org.netbeans.gradle.project.tasks.gradledaemonmanager.access$100(gradledaemonmanager.java:23) @ org.netbeans.gradle.project.tasks.gradledaemonmanager$2.execute(gradledaemonmanager.java:126) @ org.jtrim.concurrent.abstracttaskexecutorservice$functionwrapper.execute(abstracttaskexecutorservice.java:270) @ org.jtrim.concurrent.abstracttaskexecutorservice$taskofabstractexecutor.execute(abstracttaskexecutorservice.java:340) @ org.jtrim.concurrent.tasks$runoncecancelabletask.execute(tasks.java:342) @ org.jtrim.concurrent.singlethreadedexecutor$queueditem.runtask(singlethreadedexecutor.java:919) @ org.jtrim.concurrent.singlethreadedexecutor$queueditem.access$1200(singlethreadedexecutor.java:898) @ org.jtrim.concurrent.singlethreadedexecutor$impl$worker.executetask(singlethreadedexecutor.java:815) @ org.jtrim.concurrent.singlethreadedexecutor$impl$worker.processqueue(singlethreadedexecutor.java:827) @ org.jtrim.concurrent.singlethreadedexecutor$impl$worker.run(singlethreadedexecutor.java:861) @ org.jtrim.concurrent.singlethreadedexecutor$impl$1.run(singlethreadedexecutor.java:453) @ java.lang.thread.run(thread.java:745) caused by: org.gradle.internal.exceptions.locationawareexception: settings file 'c:\users\sarah\desktop\ng\settings.gradle' line: 1 not compile settings file 'c:\users\sarah\desktop\ng\settings.gradle'. @ org.gradle.initialization.defaultexceptionanalyser.transform(defaultexceptionanalyser.java:77) @ org.gradle.initialization.multiplebuildfailuresexceptionanalyser.transform(multiplebuildfailuresexceptionanalyser.java:47) @ org.gradle.initialization.stacktracesanitizingexceptionanalyser.transform(stacktracesanitizingexceptionanalyser.java:30) @ org.gradle.initialization.defaultgradlelauncher.dobuild(defaultgradlelauncher.java:108) @ org.gradle.initialization.defaultgradlelauncher.getbuildanalysis(defaultgradlelauncher.java:97) @ org.gradle.launcher.exec.inprocessbuildactionexecuter$defaultbuildcontroller.configure(inprocessbuildactionexecuter.java:94) @ org.gradle.tooling.internal.provider.runner.clientprovidedbuildactionrunner.run(clientprovidedbuildactionrunner.java:45) @ org.gradle.launcher.exec.chainingbuildactionrunner.run(chainingbuildactionrunner.java:35) @ org.gradle.launcher.exec.inprocessbuildactionexecuter.execute(inprocessbuildactionexecuter.java:41) @ org.gradle.launcher.exec.inprocessbuildactionexecuter.execute(inprocessbuildactionexecuter.java:28) @ org.gradle.launcher.daemon.server.exec.executebuild.dobuild(executebuild.java:49) @ org.gradle.launcher.daemon.server.exec.buildcommandonly.execute(buildcommandonly.java:36) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.watchfordisconnection.execute(watchfordisconnection.java:37) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.resetdeprecationlogger.execute(resetdeprecationlogger.java:26) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.requeststopifsingleuseddaemon.execute(requeststopifsingleuseddaemon.java:34) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.forwardclientinput$2.call(forwardclientinput.java:74) @ org.gradle.launcher.daemon.server.exec.forwardclientinput$2.call(forwardclientinput.java:72) @ org.gradle.util.swapper.swap(swapper.java:38) @ org.gradle.launcher.daemon.server.exec.forwardclientinput.execute(forwardclientinput.java:72) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.health.daemonhealthtracker.execute(daemonhealthtracker.java:47) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.logtoclient.dobuild(logtoclient.java:66) @ org.gradle.launcher.daemon.server.exec.buildcommandonly.execute(buildcommandonly.java:36) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.establishbuildenvironment.dobuild(establishbuildenvironment.java:71) @ org.gradle.launcher.daemon.server.exec.buildcommandonly.execute(buildcommandonly.java:36) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.health.hintgcafterbuild.execute(hintgcafterbuild.java:41) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.startbuildorrespondwithbusy$1.run(startbuildorrespondwithbusy.java:50) @ org.gradle.launcher.daemon.server.daemonstatecoordinator$1.run(daemonstatecoordinator.java:246) @ org.gradle.internal.concurrent.executorpolicy$catchandrecordfailures.onexecute(executorpolicy.java:54) @ org.gradle.internal.concurrent.stoppableexecutorimpl$1.run(stoppableexecutorimpl.java:40) caused by: org.gradle.groovy.scripts.scriptcompilationexception: not compile settings file 'c:\users\sarah\desktop\ng\settings.gradle'. @ org.gradle.groovy.scripts.internal.defaultscriptcompilationhandler.wrapcompilationfailure(defaultscriptcompilationhandler.java:187) @ org.gradle.groovy.scripts.internal.defaultscriptcompilationhandler.compilescript(defaultscriptcompilationhandler.java:127) @ org.gradle.groovy.scripts.internal.defaultscriptcompilationhandler.compiletodir(defaultscriptcompilationhandler.java:82) @ org.gradle.groovy.scripts.internal.filecachebackedscriptclasscompiler$cacheinitializer.execute(filecachebackedscriptclasscompiler.java:113) @ org.gradle.groovy.scripts.internal.filecachebackedscriptclasscompiler$cacheinitializer.execute(filecachebackedscriptclasscompiler.java:92) @ org.gradle.groovy.scripts.internal.filecachebackedscriptclasscompiler$progressreportinginitializer.execute(filecachebackedscriptclasscompiler.java:130) @ org.gradle.groovy.scripts.internal.filecachebackedscriptclasscompiler$progressreportinginitializer.execute(filecachebackedscriptclasscompiler.java:117) @ org.gradle.cache.internal.defaultpersistentdirectorycache$initializer.initialize(defaultpersistentdirectorycache.java:94) @ org.gradle.cache.internal.defaultcacheaccess$2.run(defaultcacheaccess.java:104) @ org.gradle.cache.internal.defaultfilelockmanager$defaultfilelock.dowriteaction(defaultfilelockmanager.java:173) @ org.gradle.cache.internal.defaultfilelockmanager$defaultfilelock.writefile(defaultfilelockmanager.java:163) @ org.gradle.cache.internal.defaultcacheaccess.open(defaultcacheaccess.java:102) @ org.gradle.cache.internal.defaultpersistentdirectorystore.open(defaultpersistentdirectorystore.java:46) @ org.gradle.cache.internal.defaultpersistentdirectorystore.open(defaultpersistentdirectorystore.java:28) @ org.gradle.cache.internal.defaultcachefactory.doopen(defaultcachefactory.java:80) @ org.gradle.cache.internal.defaultcachefactory.open(defaultcachefactory.java:50) @ org.gradle.cache.internal.defaultcacherepository$persistentcachebuilder.doopen(defaultcacherepository.java:138) @ org.gradle.cache.internal.defaultcacherepository$abstractcachebuilder.open(defaultcacherepository.java:121) @ org.gradle.groovy.scripts.internal.filecachebackedscriptclasscompiler.compile(filecachebackedscriptclasscompiler.java:63) @ org.gradle.groovy.scripts.internal.shortcircuitemptyscriptcompiler.compile(shortcircuitemptyscriptcompiler.java:53) @ org.gradle.groovy.scripts.internal.cachingscriptclasscompiler.compile(cachingscriptclasscompiler.java:41) @ org.gradle.groovy.scripts.defaultscriptcompilerfactory$scriptcompilerimpl.compile(defaultscriptcompilerfactory.java:50) @ org.gradle.configuration.defaultscriptpluginfactory$scriptpluginimpl.apply(defaultscriptpluginfactory.java:122) @ org.gradle.initialization.scriptevaluatingsettingsprocessor.applysettingsscript(scriptevaluatingsettingsprocessor.java:72) @ org.gradle.initialization.scriptevaluatingsettingsprocessor.process(scriptevaluatingsettingsprocessor.java:62) @ org.gradle.initialization.propertiesloadingsettingsprocessor.process(propertiesloadingsettingsprocessor.java:37) @ org.gradle.initialization.settingshandler.findsettingsandloadifappropriate(settingshandler.java:89) @ org.gradle.initialization.settingshandler.findandloadsettings(settingshandler.java:46) @ org.gradle.initialization.defaultgradlelauncher.dobuildstages(defaultgradlelauncher.java:121) @ org.gradle.initialization.defaultgradlelauncher.dobuild(defaultgradlelauncher.java:106) ... 34 more caused by: org.codehaus.groovy.control.multiplecompilationerrorsexception: startup failed: settings file 'c:\users\sarah\desktop\ng\settings.gradle': 1: unexpected char: '\' @ line 1, column 1. \ ^ 1 error @ org.gradle.groovy.scripts.internal.defaultscriptcompilationhandler.compilescript(defaultscriptcompilationhandler.java:125) ... 62 more
apparently there wrong in c:\users\sarah\desktop\ng\settings.gradle
- starts backslash , not expected.
Comments
Post a Comment