错误运行端点命令get-client-lib:

时间:2015-09-29 11:12:46

标签: android google-app-engine google-cloud-endpoints

我刚刚完成了对Android Studio 1.3.2(稳定版),Gradle 2.4版,Gradle App Engine插件的更新到1.9.24。

当我尝试进行gradle同步时,我会收到错误。我搜索了解决方案,但尚未发现任何问题。我还在学习这些和不合适的东西。提前谢谢。

这是错误: -

  

:后端:appengineEndpointsGetClientLibs FAILED

错误:

 Execution failed for task ':Backend:appengineEndpointsGetClientLibs'.
 There was an error running endpoints command get-client-lib:    
 com.example.mymodule.Backend.MyEndpoint

stacktrace:

E:\Android\Work-space\App>gradle Backend:appengineEndpointsGetClientLibs --stacktrace

:后端:appengineDownloadSdk

:后端:compileJava UP-TO-DATE

:后端:processResources UP-TO-DATE

:后端:类UP-TO-DATE

:后端:appengineEndpointsGetClientLibs FAILED

失败:构建因异常而失败。

  • 出了什么问题: 任务执行失败':后端:appengineEndpointsGetClientLibs'。

      

    运行端点命令时发生错误命令get-client-lib:com.example.mymodule.Backend.MyEndpoint

  • 尝试: 使用--info或--debug选项运行以获得更多日志输出。

  • 例外情况是: org.gradle.api.tasks.TaskExecutionException:任务':后端:appengineEndpointsGetClientLibs'执行失败。     at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)     在org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)     在org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)     在org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)     在org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)     在org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)     在org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)     在org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)     在org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)     在org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:310)     在org.gradle.execution.taskgraph.Abs​​tractTaskPlanExecutor $ TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)     at org.gradle.execution.taskgraph.Abs​​tractTaskPlanExecutor $ TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)     at org.gradle.execution.taskgraph.Abs​​tractTaskPlanExecutor $ TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)     在org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)     在org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:88)     在org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)     在org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)     在org.gradle.execution.DefaultBuildExecuter.access $ 200(DefaultBuildExecuter.java:23)     在org.gradle.execution.DefaultBuildExecuter $ 2.proceed(DefaultBuildExecuter.java:68)     在org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)     在org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)     在org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:55)     在org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)     在org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)     在org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)     at org.gradle.launcher.exec.InProcessBuildActionExecuter $ DefaultBuildController.run(InProcessBuildActionExecuter.java:90)     在org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)     在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:28)     在org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:50)     在org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:27)     在org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:40)     在org.gradle.internal.Actions $ RunnableActionAdapter.execute(Actions.java:169)     在org.gradle.launcher.cli.CommandLineActionFactory $ ParseAndBuildAction.execute(CommandLineActionFactory.java:237)     在org.gradle.launcher.cli.CommandLineActionFactory $ ParseAndBuildAction.execute(CommandLineActionFactory.java:210)     在org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)     在org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)     在org.gradle.launcher.cli.CommandLineActionFactory $ WithLogging.execute(CommandLineActionFactory.java:206)     在org.gradle.launcher.cli.CommandLineActionFactory $ WithLogging.execute(CommandLineActionFactory.java:169)     在org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)     在org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)     在org.gradle.launcher.Main.doAction(Main.java:33)     在org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)     在org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)     在org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)     在org.gradle.launcher.GradleMain.main(GradleMain.java:23) 引起:org.gradle.api.GradleException:运行端点命令时发生错误命令get-client-lib:com.example.mymodule.Backend.MyEndpo INT     在com.google.appengine.task.endpoints.EndpointsTask.runEndpointsCommand(EndpointsTask.groovy:52)     在com.google.appengine.task.endpoints.EndpointsTask $ runEndpointsCommand.callCurrent(未知来源)     在com.google.appengine.task.endpoints.GetClientLibsTask.executeTask(GetClientLibsTask.groovy:39)     在com.google.appengine.task.AbstractTask.start(AbstractTask.groovy:39)     在org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)     在org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory $ StandardTaskAction.doExecute(AnnotationProcessingTask) Factory.java:226)     at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory $ StandardTaskAction.execute(AnnotationProcessingTaskFa) ctory.java:219)     at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory $ StandardTaskAction.execute(AnnotationProcessingTaskFa) ctory.java:208)     在org.gradle.api.internal.AbstractTask $ TaskActionWrapper.execute(AbstractTask.java:589)     在org.gradle.api.internal.AbstractTask $ TaskActionWrapper.execute(AbstractTask.java:572)     at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)     在org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)     ......还有46个 引起:java.lang.ClassNotFoundException:com.example.mymodule.Backend.MyEndpoint     在com.google.api.server.spi.tools.GenApiConfigAction.loadClasses(GenApiConfigAction.java:109)     在com.google.api.server.spi.tools.GenApiConfigAction.genApiConfig(GenApiConfigAction.java:90)     在com.google.api.server.spi.tools.GetClientLibAction.getClientLib(GetClientLibAction.java:78)     在com.google.api.server.spi.tools.GetClientLibAction.execute(GetClientLibAction.java:57)     在com.google.api.server.spi.tools.EndpointsTool.execute(EndpointsTool.java:69)     在com.google.appengine.task.endpoints.EndpointsTask.runEndpointsCommand(EndpointsTask.groovy:49)     ... 57更多

建立失败

总时间:33.809秒

1 个答案:

答案 0 :(得分:2)

导致此问题是因为我删除了模板生成的云端点API,并且在删除文件时没有收到使用警告。

要解决此问题,只需删除对WEB.INF / web.xml文件夹中删除的API的任何引用。

如果您有一个Web项目,那就是这样。在我更新Android Studio后,我在执行安全删除时收到使用警告。