android студия, оценка Значение 'debug GraphQL source', указанное для свойства '$ 2', невозможно преобразовать в файл - PullRequest
0 голосов
/ 05 февраля 2020

Я следовал учебнику aws:

https://aws.amazon.com/blogs/mobile/building-an-android-app-with-aws-amplify-part-1/

Я сделал все, что он просил, и я получаю следующую ошибку при попытке запустить приложение.

«Значение« источник отладки GraphQL », заданное для свойства« $ 2 », не может быть преобразовано в файл.»

кто-нибудь еще сталкивался с этой проблемой?

Трассировка стека ниже. Я попытался изменить версии Gradle и следовать этой SO qeuration на ту же ошибку, но я все еще получаю ошибку.

SO вопрос и ответ: Как исправить ошибку «основной источник GraphQL» при генерации кода с использованием Apollo?

org.gradle.api.tasks.TaskValidationException: были обнаружены некоторые проблемы с настройкой задачи ': app: generateDebugApolloIR'. в org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.report (ValidatingTaskExecuter. java: 72) в org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute * ValidatingTaskExecuter (ValidatingTask) в org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute (SkipEmptySourceFilesTaskExecuter. java: 108) в org.gradle.api.internal.tasks.execution.Eeste at org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute (ResolveAfterPreviousExecutionStateTaskExecuter. java: 46) в org.gradle.api.internal.tasks.execuupExoutt. в org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute (FinalizePropertiesTaskExecuter. java: 46) в org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecutionMaseSececuolMec uter. java: 95) в org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute (SkipTaskWithNoActionsExecuter. java: 57) в org.gradle.api.internal.tasks.executeIip SkipOnlyIfTaskExecuter. java: 56) в org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute (CatchExceptionTaskExecuter. java: 36) в org.gradle.api.internal.tasks.exast. (EventFiringTaskExecuter. java: 73) в org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter $ 1.call (EventFiringTaskExecuter. java: 52) в org.gradle.api.internal.tasks.execution.kvent .call (EventFiringTaskExecuter. java: 49) в org.gradle.internal.operations.DefaultBuildOperationExecutor $ CallableBuildOperationWorker.execute (DefaultBuildOperationExecutor. java: 416) в org.gradle.inE . java: 406) в org.gradle.inte rnal.operations.DefaultBuildOperationExecutor $ 1.execute (DefaultBuildOperationExecutor. java: 165) в org.gradle.internal.operations.DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor. java: 250) в org.graild.OperationBid (DefaultBuildOperationExecutor. java: 158) в org.gradle.internal.operations.DefaultBuildOperationExecutor.call (DefaultBuildOperationExecutor. java: 102) в org.gradle.internal.operations.DelegatingBuildOperationExecutor.call 10 DelegatingBuild. . gradle.execution.taskgraph.DefaultTaskExecutionGraph $ InvokeNodeExecutorsAction.execute (DefaultTaskExecutionGraph. java: 355) в org.gradle.execution.taskgraph.DefaultTaskExecutionGraph $ InvokeNodeExecutorsAtioTexecute nGraph. java: 343) в org.gradle.execution.taskgraph.DefaultTaskExecutionGraph $ BuildOperationAwareExecutionAction. execute (DefaultTaskExecutionGraph. java: 336) в org.gradle.execution.taskgraph.DefaultTaskExecutionGraph $ BuildOperationAwareExecutionAction.execute (DefaultTaskExecutionGraph. java: 322) в org.gradle.execution.planExeclan $ $ . java: 134) в org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker $ 1.execute (DefaultPlanExecutor. java: 129) в org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker.execute (DefaultPlanExecutor. java: 202) в org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker.executeNextNode (DefaultPlanExecutor. java: 193) в org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker.run (DefaultPlanExecutor: 129) 10). в org.gradle.internal.concurrent.ExecutorPolicy $ CatchAndRecordFailures.onExecute (ExecutorPolicy. java: 63) в org.gradle.internal.concurrent.ManagedExecutorImpl $ 1.run (ManagedExecutorImpl. java 46): 46): util.concurrent.ThreadPoolExecutor.runWorker (. ThreadPoolExecutor java: 1149) в java .util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor. java: 624) в org.gradle.internal.concurrent.ThreadFactoryImpl $ ManagedThreadRunnable.run (ThreadFactoryImpl. java61): 55) .lang.Thread.run (Thread. java: 748) Причина 1: org.gradle.api.InvalidUserDataException: значение «источник отладки GraphQL», заданное для свойства «$ 2», невозможно преобразовать в файл. в org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.report (ValidatingTaskExecuter. java: 69) в org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute * 585: ValidatingTaskExecuter (58). в org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute (SkipEmptySourceFilesTaskExecuter. java: 108) в org.gradle.api.internal.tasks.execution.Eesol в org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute (ResolveAfterPreviousExecutionStateTaskExecuter. java: 46) в org.gradle.api.internal.tasks.execuTexput.OuttoTeOutыша в org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute (FinalizePropertiesTaskExecuter. java: 46) в org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecutionMaseSececuolMec uter. java: 95) в org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute (SkipTaskWithNoActionsExecuter. java: 57) в org.gradle.api.internal.tasks.execukI SkipOnlyIfTaskExecuter. java: 56) в org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute (CatchExceptionTaskExecuter. java: 36) в org.gradle.api.internal.tasks.exast. (EventFiringTaskExecuter. java: 73) в org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter $ 1.call (EventFiringTaskExecuter. java: 52) в org.gradle.api.internal.tasks.execution.kvent .call (EventFiringTaskExecuter. java: 49) в org.gradle.internal.operations.DefaultBuildOperationExecutor $ CallableBuildOperationWorker.execute (DefaultBuildOperationExecutor. java: 416) в org.gradle.inE . java: 406) в org.gradle.inte rnal.operations.DefaultBuildOperationExecutor $ 1.execute (DefaultBuildOperationExecutor. java: 165) в org.gradle.internal.operations.DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor. java: 250) в org.graild.experationBo. (DefaultBuildOperationExecutor. java: 158) в org.gradle.internal.operations.DefaultBuildOperationExecutor.call (DefaultBuildOperationExecutor. java: 102) в org.gradle.internal.operations. DelegatingBuildOperationExecutor.call (DelegatingBuildOperationExecutor. java: 36) в org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute (EventFiringTaskExecuter. java: 49) в org.gradle.extek. LocalTaskNodeExecutor. java: 43) в org.gradle.execution.taskgraph.DefaultTaskExecutionGraph $ InvokeNodeExecutorsAction.execute (DefaultTaskExecutionGraph. java: 355) в org.gradle.execution.tecuk. *: 343) в org.gradle.execution.taskgraph.DefaultTaskExecutionGraph $ BuildOperationAwareExecutionAction.execute (DefaultTaskExecutionGraph. java: 336) в org.gradle.execution.taskgraph.DefaultTaskExecutionGraph $ BuildOtion.ExecutionGraphText_ExactiontionGroup: в org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker $ 1.execute (DefaultPlanExecutor. java: 134) в org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker $ 1.execute (DefaultPlanExecutor. java: 129) в org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker.execute (DefaultPlanExecutor. java: 202) в org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker.exte ( DefaultPlanExecutor. java: 193) в org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker.run (DefaultPlanExecutor. java: 129) в org.gradle.internal.concurrent.ExecutorPolicy $ CatchAndRecordFailures. 10Exol. *: 63) в org.gradle.internal.concurrent.ManagedExecutorImpl $ 1.run (ManagedExecutorImpl. java: 46) в java .util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor. java: 1149) в * java .util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor. java: 624) в org.gradle.internal.concurrent.ThreadFactoryImpl $ ManagedThreadRunnable.run (ThreadFactoryImpl. java: 55) в * 1102. * 1102 в * 1102. Thread.run (Thread. java: 748) Причина 2: org.gradle.api.InvalidUserDataException: значение 'основной источник GraphQL', указанное для свойства '$ 1', не может быть c преобразовано в файл. в org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.report (ValidatingTaskExecuter. java: 69) в org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute * 585: ValidatingTaskExecuter (58). в org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute (SkipEmptySourceFilesTaskExecuter. java: 108) в org.gradle.api.internal.tasks.execution.Eesol at org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute (ResolveAfterPreviousExecutionStateTaskExecuter. java: 46) в org.gradle.api.internal.tasks.execuupExout.Output.Outts.OUT в org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute (FinalizePropertiesTaskExecuter. java: 46) в org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecutionMeste (ResecMecasModeExecutionMec uter. java: 95) в org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute (SkipTaskWithNoActionsExecuter. java: 57) в org.gradle.api.internal.tasks.executeIip SkipOnlyIfTaskExec. (EventFiringTaskExecuter. java: 73) в org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter $ 1.call (EventFiringTaskExecuter. java: 52) в org.gradle.api.internal.tasks.execution.kvent .call (EventFiringTaskExecuter. java: 49) в org.gradle.internal.operations.DefaultBuildOperationExecutor $ CallableBuildOperationWorker.execute (DefaultBuildOperationExecutor. java: 416) в орг. gradle.internal.operations.DefaultBuildOperationExecutor $ CallableBuildOperationWorker.execute (DefaultBuildOperationExecutor. java: 406) в org.gradle.internal.operations.DefaultBuildOperationExecutor $ 1.execute (* DefaultBuildOperationExeco: 11). .DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor. java: 250) в org.gradle.internal.operations.DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor. java: 158) в org.gradle.internal.operationallOO 1123 *: 102) в org.gradle.internal.operations.DelegatingBuildOperationExecutor.call (DelegatingBuildOperationExecutor. java: 36) в org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute (11): EventFiringTaskExEx ) в org.gradle.execution.plan.LocalTaskNodeExecutor.execute (LocalTaskNodeExecutor. java: 43) в org.gradle.execution.taskgraph.DefaultTaskExecutionGraph $ InvokeNodeExecutorsAction.execu te (DefaultTaskExecutionGraph. java: 355) в org.gradle.execution.taskgraph.DefaultTaskExecutionGraph $ InvokeNodeExecutorsAction.execute (DefaultTaskExecutionGraph. java: 343) в org.gradle.exaignGecutionExecutionOecutionExecution $ecutionEecuk java: 336) в org.gradle.execution.taskgraph.DefaultTaskExecutionGraph $ BuildOperationAwareExecutionAction.execute (DefaultTaskExecutionGraph. java: 322) в org.gradle.execution.plan.DefaultPlanExecutor * 1.ExecutorWorker $ 11. ExecutorWorker $ 11. : 134) в org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker $ 1.execute (DefaultPlanExecutor. java: 129) в org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker.execute (DefaultPlanExecutor. java: 20) в org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker.executeNextNode (DefaultPlanExecutor. java: 193) в org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker.run (DefaultPlanExecutor. * 1135g: 129): 129) .int ernal.concurrent.ExecutorPolicy $ CatchAndRecordFailures.onExecute (ExecutorPolicy. java: 63) по адресу org.gradle.internal.concurrent.ManagedExecutorImpl $ 1.run (ManagedExecutorImpl. java: 46) в * 113Tecure. .runWorker (ThreadPoolExecutor. java: 1149) по java .util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor. java: 624) по адресу org.gradle.internal.concurrent.ThreadFactoryImpl $ ThreadableThunR . java: 55) при java .lang.Thread.run (Тема. java: 748)

...