2017-03-28 12 views
3

現在、あるコンピュータでgradle-scriptを実行しているときに奇妙なエラーが発生していますいくつかのキャッシュの問題のようですが、.gradleを削除することは役に立たず、他のものを削除する方法がわかりません FAILURE:例外が発生してビルドに失敗しました。>プラグインの適用に失敗しました[id 'kotlin']>入力文字列の場合:

➜ kontinuum git:(ligi_wip2) ✗ ./gradlew clean run --stacktrace 
Parallel execution is an incubating feature. 

* Where: 
Build file '/home/ligi/kontinuum/build.gradle' line: 15 

* What went wrong: 
A problem occurred evaluating root project 'kontinuum'. 
> Failed to apply plugin [id 'kotlin'] 
    > For input string: "" 

* Try: 
Run with --info or --debug option to get more log output. 

* Exception is: 
org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'kontinuum'. 
     at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:92) 
     at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl$2.run(DefaultScriptPluginFactory.java:176) 
     at org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:77) 
     at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:181) 
     at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:39) 
     at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26) 
     at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34) 
     at org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEvaluator.java:70) 
     at org.gradle.configuration.project.LifecycleProjectEvaluator.access$000(LifecycleProjectEvaluator.java:33) 
     at org.gradle.configuration.project.LifecycleProjectEvaluator$1.execute(LifecycleProjectEvaluator.java:53) 
     at org.gradle.configuration.project.LifecycleProjectEvaluator$1.execute(LifecycleProjectEvaluator.java:50) 
     at org.gradle.internal.Transformers$4.transform(Transformers.java:169) 
     at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106) 
     at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:61) 
     at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:50) 
     at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:599) 
     at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:125) 
     at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:35) 
     at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:60) 
     at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:38) 
     at org.gradle.initialization.DefaultGradleLauncher$ConfigureBuildAction.execute(DefaultGradleLauncher.java:233) 
     at org.gradle.initialization.DefaultGradleLauncher$ConfigureBuildAction.execute(DefaultGradleLauncher.java:230) 
     at org.gradle.internal.Transformers$4.transform(Transformers.java:169) 
     at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106) 
     at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56) 
     at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:160) 
     at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:119) 
     at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:102) 
     at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:71) 
     at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28) 
     at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) 
     at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41) 
     at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26) 
     at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75) 
     at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49) 
     at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:49) 
     at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:31) 
     at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67) 
     at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) 
     at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) 
     at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:47) 
     at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) 
     at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26) 
     at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) 
     at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34) 
     at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) 
     at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74) 
     at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72) 
     at org.gradle.util.Swapper.swap(Swapper.java:38) 
     at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72) 
     at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) 
     at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55) 
     at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) 
     at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60) 
     at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) 
     at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) 
     at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72) 
     at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) 
     at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) 
     at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50) 
     at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297) 
     at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) 
     at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:46) 
Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin [id 'kotlin'] 
     at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:155) 
     at org.gradle.api.internal.plugins.DefaultPluginManager.apply(DefaultPluginManager.java:112) 
     at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.applyType(DefaultObjectConfigurationAction.java:113) 
     at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.access$200(DefaultObjectConfigurationAction.java:36) 
     at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction$3.run(DefaultObjectConfigurationAction.java:80) 
     at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.execute(DefaultObjectConfigurationAction.java:136) 
     at org.gradle.api.internal.project.AbstractPluginAware.apply(AbstractPluginAware.java:44) 
     at org.gradle.api.internal.project.ProjectScript.apply(ProjectScript.java:34) 
     at org.gradle.api.Script$apply$0.callCurrent(Unknown Source) 
     at build_59bsa4g28e7wfd7hj9y0560h5.run(/home/ligi/kontinuum/build.gradle:15) 
     at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:90) 
     ... 62 more 
Caused by: java.lang.NumberFormatException: For input string: "" 
     at org.jetbrains.kotlin.incremental.CacheVersion.getActualVersion(CacheVersion.kt:44) 
     at org.jetbrains.kotlin.incremental.CacheVersion.checkVersion(CacheVersion.kt:57) 
     at org.jetbrains.kotlin.incremental.BuildCacheStorage.<init>(BuildCacheStorage.kt:83) 
     at org.jetbrains.kotlin.gradle.plugin.KotlinGradleBuildServices.<init>(KotlinGradleBuildServices.kt:68) 
     at org.jetbrains.kotlin.gradle.plugin.KotlinGradleBuildServices.<init>(KotlinGradleBuildServices.kt:34) 
     at org.jetbrains.kotlin.gradle.plugin.KotlinGradleBuildServices$Companion.getInstance(KotlinGradleBuildServices.kt:54) 
     at org.jetbrains.kotlin.gradle.plugin.KotlinBasePluginWrapper.apply(KotlinPluginWrapper.kt:41) 
     at org.jetbrains.kotlin.gradle.plugin.KotlinBasePluginWrapper.apply(KotlinPluginWrapper.kt:34) 
     at org.gradle.api.internal.plugins.ImperativeOnlyPluginApplicator.applyImperative(ImperativeOnlyPluginApplicator.java:35) 
     at org.gradle.api.internal.plugins.RuleBasedPluginApplicator.applyImperative(RuleBasedPluginApplicator.java:43) 
     at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:139) 
     ... 72 more 

EDIT: * RM -rf .gradle は*他のユーザーとそれを実行すると正常に動作助けにはなりませんでした。

+0

リファレンスに記載されているバージョンを指定しましたか? https://kotlinlang.org/docs/reference/using-gradle.html – hotkey

+0

はい私はこれを行いました。 – ligi

+0

なぜ 'build.gradle'を投稿しないのですか? – Strelok

答えて

9

この問題があり、buildフォルダを削除してから、ビルドを再実行すると修正されています。

+0

そして1.1.2は本当にそれを修正すべきです:https://youtrack.jetbrains.com/issue/KT-17125 – ligi

0

試してください:マーティンは答えとして>無効化キャッシュ
3 - -
1.ビルド - >クリーン/プロジェクト
2.ファイルを再構築プロジェクトのルートからビルドフォルダを削除。

関連する問題