当我运行flutter项目时,在gradle build上得到这个错误:无法确定任务“:app:processDevDebugManifest”的依赖项。
无法创建任务“:app:processDevDebugMainManifest”。无法调用"Object.toString()",因为"value"为null
我尝试过的:我尝试了这么多的解决方案,没有什么帮助intalled最新版本,Flutter清洁,Flutterpub获取,Flutterpub升级,restartvscode,重新启动窗口,比较这个项目与其他项目的工作正常,比较AndroidManifest.xml文件,比较build. gradle 2文件,并消除可能导致此问题的possibile依赖关系-N O T H I N G
最后,在CHATgpt的帮助下,我得到了stacktrace,但仍然,我没有访问gradle api文件,以及其中的类,所以我怎么能做一个debugg?
糟糕,我被卡住了,而不是编程Flutter-我处理这个问题。为了您的方便,我标记了错误开始的位置,但再次-我不知道如何调试这个。
任何帮助都将受到高度赞赏!
- 原因:java.lang.NullPointerException:无法调用"Object. toString()",因为com.android.build.gradle.internal.core.VariantDslInfoImpl$manifestPlaceholders$2.invoke(VariantDslInfoImpl.kt:854)**
- 例外情况是:org. gradle. api. internal. tasks. TaskDependencyResolveException:无法确定任务“:app:processDevDebugManifest”的依赖项。在org。gradle。API. internal.任务。CachingTaskDependencyResolveContext。getDependencies(CachingTaskDependencyResolveContext.java:68)at org. Gradle处决计划TaskDependencyResolver。resolveDependenciesFor(TaskDependencyResolver.java:49)。gradle。处决计划LocalTaskNode。getDependencies(LocalTaskNode.java:147)。gradle。处决计划LocalTaskNode。resolveDependencies(LocalTaskNode.java:121)Gradle处决计划DefaultExecutionPlan。discoverNodeRelationships(DefaultExecutionPlan.java:184)。gradle。处决计划DefaultExecutionPlan。doAddEntryNodes(DefaultExecutionPlan.java:156)at org. gradle。处决计划DefaultExecutionPlan。addEntryTasks(DefaultExecutionPlan.java:131)at org. Gradle处决计划DefaultExecutionPlan。addEntryTasks(DefaultExecutionPlan.java:123)at org. Gradle处决TaskNameResolvingBuildTaskScheduler。scheduleRequestedTasks(TaskNameResolvingBuildTaskScheduler.java:53)at org. gradle。处决DefaultTasksBuildTaskScheduler。scheduleRequestedTasks(DefaultTasksBuildTaskScheduler.java:72),网址为org.gradle.initialization.DefaultTaskExecutionPreparer.lambda$scheduleRequestedTasks $0(DefaultTaskExecutionPreparer.java:46),网址为org.gradle.internal.Factories$1.create(Factories.java:31)。Gradle内在的工作。DefaultWorkerLeaseService。在org上使用ReplacedLocks(DefaultWorkerLeaseService.java:345)。Gradle API内部。项目。DefaultProjectStateRegistry $DefaultBuildProjectRegistry。with MutableStateOfAllProjects(DefaultProjectStateRegistry.java:205)at org. gradle。API内部。项目。DefaultProjectStateRegistry $DefaultBuildProjectRegistry。withMutableStateOfAllProjects(DefaultProjectStateRegistry.java:198)at org. gradle。初始化DefaultTaskExecutionPreparer。scheduleRequestedTasks(DefaultTaskExecutionPreparer.java:45)at org.gradle.initialization.VintageBuildModelController.lambda$scheduleRequestedTasks$0(VintageBuildModelController.java:76)at org.gradle.internal.model.StateTransitionController.lambda$inState$1(StateTransitionController.java:110)at org.gradle.internal.model.StateTransitionController.lambda$inState$2(StateTransitionController.java:125)at org. gradle。内部的工作默认同步器。withLock(DefaultSynchronizer.java:44)at org. gradle。内部的模型StateTransitionController. inState(StateTransitionController.java:121)at org. gradle。内部的模型StateTransitionController. inState(StateTransitionController.java:109)at org. gradle。初始化VintageBuildModelController。scheduleRequestedTasks(VintageBuildModelController.java:76)at org. gradle。内部的建造。DefaultBuildLifecycleController $DefaultWorkGraphBuilder。addRequestedTasks(DefaultBuildLifecycleController.java:255)at org.gradle.internal.buildtree.DefaultBuildTreeWorkPreparer.lambda$scheduleRequestedTasks$0(DefaultBuildTreeWorkPreparer.java:38)at org.gradle.internal.build.DefaultBuildLifecycleController.lambda$populateWorkGraph$3(DefaultBuildLifecycleController.java:143)at org. gradle。内部的建造。DefaultBuildWorkPreparer。populateWorkGraph(DefaultBuildWorkPreparer.java:42)at org. gradle。内部的建造。BuildOperationFiringBuildWorkPreparer $PopulateWorkGraph。populateTaskGraph(BuildOperationFiringBuildWorkPreparer.java:120)at org. gradle。内部的建造。BuildOperationFiringBuildWorkPreparer $PopulateWorkGraph.run(BuildOperationFiringBuildWorkPreparer.java:91)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)at org. gradle。内部的手术DefaultBuildOperationRunner。execute(DefaultBuildOperationRunner.java:157)at org. gradle。内部的手术DefaultBuildOperationRunner。execute(DefaultBuildOperationRunner.java:59)at www.example.com(DefaultBuildOperationRunner.java:47)at www.example.comorg.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run (DefaultBuildOperationExecutor.java:68) at org.gradle.internal.build.BuildOperationFiringBuildWorkPreparer.populateWorkGraph(BuildOperationFiringBuildWorkPreparer.java:68) at org.gradle.internal.build.DefaultBuildLifecycleController.lambda$populateWorkGraph$4(DefaultBuildLifecycleController.java:143) at org.gradle.internal.model.StateTransitionController.lambda$inState$1(StateTransitionController.java:110) at org.gradle.internal.model.StateTransitionController.lambda$inState$2(StateTransitionController.java:125) at org.gradle.internal.work.DefaultSynchronizer.withLock(DefaultSynchronizer.java:44) at org.gradle.internal.model.StateTransitionController.inState(StateTransitionController.java:121) at org.gradle.internal.model.StateTransitionController.inState(StateTransitionController.java:109) at org.gradle.internal.build.DefaultBuildLifecycleController.populateWorkGraph(DefaultBuildLifecycleController.java:143) at org.gradle.internal.build.DefaultBuildWorkGraphController$DefaultBuildWorkGraph.populateWorkGraph(DefaultBuildWorkGraphController.java:148) at org.gradle.composite.internal.DefaultBuildController.populateWorkGraph(DefaultBuildController.java:73) at org.gradle.composite.internal.DefaultIncludedBuildTaskGraph$DefaultBuildTreeWorkGraphBuilder.withWorkGraph(DefaultIncludedBuildTaskGraph.java:150) at org.gradle.internal.buildtree.DefaultBuildTreeWorkPreparer.lambda$scheduleRequestedTasks$1(DefaultBuildTreeWorkPreparer.java:38) at org.gradle.composite.internal.DefaultIncludedBuildTaskGraph$DefaultBuildTreeWorkGraph$1.run(DefaultIncludedBuildTaskGraph.java:197)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)at org. gradle。内部的手术DefaultBuildOperationRunner。execute(DefaultBuildOperationRunner.java:157)at org. gradle。内部的手术DefaultBuildOperationRunner。execute(DefaultBuildOperationRunner.java:59)at www.example.com(DefaultBuildOperationRunner.java:47)at www.example.comorg.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run (DefaultBuildOperationExecutor.java:68) at org.gradle.composite.internal.DefaultIncludedBuildTaskGraph$DefaultBuildTreeWorkGraph.scheduleWork(DefaultIncludedBuildTaskGraph.java:192) at org.gradle.internal.buildtree.DefaultBuildTreeWorkPreparer.scheduleRequestedTasks(DefaultBuildTreeWorkPreparer.java:37) at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$doScheduleAndRunTasks$3(DefaultBuildTreeLifecycleController.java:96) at org.gradle.composite.internal.DefaultIncludedBuildTaskGraph.withNewWorkGraph(DefaultIncludedBuildTaskGraph.java:109) at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.doScheduleAndRunTasks(DefaultBuildTreeLifecycleController.java:95) at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$scheduleAndRunTasks$1(DefaultBuildTreeLifecycleController.java:76) at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$runBuild$5(DefaultBuildTreeLifecycleController.java:113) at org.gradle.internal.model.StateTransitionController.lambda$transition$5(StateTransitionController.java:166) at org.gradle.internal.model.StateTransitionController.doTransition(StateTransitionController.java:247) at org.gradle.internal.model.StateTransitionController.lambda$transition$6(StateTransitionController.java:166) at org.gradle.internal.work.DefaultSynchronizer.withLock(DefaultSynchronizer.java:44) at org.gradle.internal.model.StateTransitionController.transition(StateTransitionController.java:166) at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.runBuild(DefaultBuildTreeLifecycleController.java:110) at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.scheduleAndRunTasks(DefaultBuildTreeLifecycleController.java:76)
at org. gradle. internal. buildtree. DefaultBuildTreeLifecycleController. scheduleAndRunTasks(DefaultBuildTreeLifecycleController.java:71)
在www.example.com(ExecuteBuildActionRunner.java:31)在www.example.com(ChainingBuildActionRunner.java:35)在www.example.com(ProblemReportingBuildActionRunner.java:49)在www.example.com(BuildOutcomeReportingBuildActionRunner.java:65)在www.example.com(FileSystemWatchingBuildActionRunner.java:136)在www.example.com(BuildCompletionNotifyingBuildActionRunner.java:41)在org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.lambda$execute$0(RootBuildCycleBuildActionExecutor.java:40)在www.example.com(DefaultRootBuildState.java:122)Gradle发射器。执行RootBuildLifecycleBuildActionExecutor。execute(RootBuildLifecycleBuildActionExecutor.java:40)at org. Gradle内在的构建树DefaultBuildTreeContext。execute(DefaultBuildTreeContext.java:40)at org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.lambda$execute$0(BuildTreeLifecycleBuildActionExecutor.java:65)at org.gradle.launcher.exec.BuildTreeLifecleBuildActionExecutor.lambda$executor.lambda$execute$0(BuildTreeLifecleBuildActionExecutor.java:65)at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:31) at org.gradle.launcher.exec.ChainingBuildActionRunner.run (ChainingBuildActionRunner.java:35) at org.gradle.internal.buildtree.ProblemReportingBuildActionRunner.run (ProblemReportingBuildActionRunner.java:49) at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run (BuildOutcomeReportingBuildActionRunner.java:65) at org.gradle.tooling.internal.provider.FileSystemWatchingBuildActionRunner.run (FileSystemWatchingBuildActionRunner.java:136) at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run (BuildCompletionNotifyingBuildActionRunner.java:41) at org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.lambda$execute$0(RootBuildLifecycleBuildActionExecutor.java:40) at org.gradle.composite.internal.DefaultRootBuildState.run (DefaultRootBuildState.java:122) at org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.execute(RootBuildLifecycleBuildActionExecutor.java:40) at org.gradle.internal.buildtree.DefaultBuildTreeContext.execute(DefaultBuildTreeContext.java:40) at org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.lambda$execute$0(BuildTreeLifecycleBuildActionExecutor.java:65) at www.example.com (BuildTreeState.java:53) at org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.execute(BuildTreeLifecycleBuildActionExecutor.java:65) at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor$3.call(RunAsBuildOperationBuildActionExecutor.java:61) at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor$3.call(RunAsBuildOperationBuildActionExecutor.java:57) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)at org. Gradle内部的手术DefaultBuildOperationRunner。execute(DefaultBuildOperationRunner.java:157)at org. Gradle内部的手术DefaultBuildOperationRunner。execute(DefaultBuildOperationRunner.java:59)at www.example.com(DefaultBuildOperationRunner.java:53)at www.example.com(DefaultBuildOperationExecutor.java:73)at org。gradle。发射器。执行RunAsBuildOperationBuildActionExecutor。execute(RunAsBuildOperationBuildActionExecutor.java:57)at org.gradle.launcher.exec.RunAsWorkerThreadBuildActionExecutor.lambda$execute$0(RunAsWorkerThreadBuildActionExecutor.java:36)at org. gradle。内在的工作。DefaultWorkerLeaseService。withLocks(DefaultWorkerLeaseService.java:249)Gradle内在的工作。DefaultWorkerLeaseService。org上的runAsWorkerThread(DefaultWorkerLeaseService.java:109)。Gradle发射器执行官RunAsWorkerThreadBuildActionExecutor。execute(RunAsWorkerThreadBuildActionExecutor.java:36)Gradle工具内部的提供者。连续的。ContinuousBuildActionExecutor。execute(ContinuousBuildActionExecutor.java:110)at org. gradle。工具。内在的提供者SubscribableBuildActionExecutor。execute(SubscribableBuildActionExecutor.java:64)Gradle内在的会议。DefaultBuildSessionContext。execute(DefaultBuildSessionContext.java:46)Gradle工具。内在的提供者。BuildSessionLifecycleBuildActionExecuter $ActionImpl. apply(BuildSessionLifecycleBuildActionExecuter.java:100)at org. Gradle工具。内在的提供者BuildSessionLifecycleBuildActionExecuter $ActionImpl. apply(BuildSessionLifecycleBuildActionExecuter.java:88)at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53) at org.gradle.internal.operations.DefaultBuildOperationExecutor.call (DefaultBuildOperationExecutor.java:73) at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor.execute(RunAsBuildOperationBuildActionExecutor.java:57) at org.gradle.launcher.exec.RunAsWorkerThreadBuildActionExecutor.lambda$execute$0(RunAsWorkerThreadBuildActionExecutor.java:36) at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:249) at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:109) at org.gradle.launcher.exec.RunAsWorkerThreadBuildActionExecutor.execute(RunAsWorkerThreadBuildActionExecutor.java:36) at org.gradle.tooling.internal.provider.continuous.ContinuousBuildActionExecutor.execute(ContinuousBuildActionExecutor.java:110) at org.gradle.tooling.internal.provider.SubscribableBuildActionExecutor.execute(SubscribableBuildActionExecutor.java:64) at org.gradle.internal.session.DefaultBuildSessionContext.execute(DefaultBuildSessionContext.java:46) at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter$ActionImpl.apply(BuildSessionLifecycleBuildActionExecuter.java:100) at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter$ActionImpl.apply(BuildSessionLifecycleBuildActionExecuter.java:88) at www.example.com (BuildSessionState.java:69) at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter.execute(BuildSessionLifecycleBuildActionExecuter.java:62)
at org. gradle. tooling. internal. provider. BuildSessionLifecycleBuildActionExecuter. execute(BuildSessionLifecycleBuildActionExecuter.java:41)
在org. gradle。工具内部的提供者StartParamsValidatingActionExecuter。在org上执行(StartParamsValidatingActionExecuter.java:63)。gradle。工具内部的提供者。StartParamsValidatingActionExecuter。在org上执行(StartParamsValidatingActionExecuter.java:31)。Gradle工具。内在的提供者SessionFailureReportingActionExecuter。在org上执行(SessionFailureReportingActionExecuter.java:52)。Gradle工具内在的提供者。SessionFailureReportingActionExecuter。execute(SessionFailureReportingActionExecuter.java:40)at org. Gradle工具内在的提供者SetupLoggingActionExecuter。execute(SetupLoggingActionExecuter.java:47)Gradle工具。内部的提供者SetupLoggingActionExecuter。execute(SetupLoggingActionExecuter.java:31)at org. gradle。发射器守护进程服务器。执行ExecuteBuild。doBuild(ExecuteBuild.java:65)at org. gradle。发射器守护进程服务器。执行BuildCommandOnly。在org上执行(BuildCommandOnly.java:37)。gradle。发射器守护进程服务器。api. DaemonCommandExecution。proceed(DaemonCommandExecution.java:104)at org. Gradle发射器。守护进程服务器。执行官WatchForDisconnection。execute(WatchForDisconnection.java:39)at org. Gradle发射器。守护进程服务器。api. DaemonCommandExecution。继续(DaemonCommandExecution.java:104)at org. Gradle发射器。守护进程服务器。执行官ResetDeprecationLogger。execute(ResetDeprecationLogger.java:29)at org. Gradle发射器。守护进程服务器。api. DaemonCommandExecution。继续(DaemonCommandExecution.java:104)at org. Gradle发射器。守护进程服务器。执行官RequestStopIfSingleUsedDaemon。execute(RequestStopIfSingleUsedDaemon.java:35)at org. Gradle发射器。守护进程服务器。api. DaemonCommandExecution。继续(DaemonCommandExecution.java:104)at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:78)at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:75)at org。Gradle效用内部的交换机swap(Swapper.java:38)at org. gradle。发射器守护进程服务器。执行ForwardClientInput。execute(ForwardClientInput.java:75)at org. gradle。发射器守护进程服务器。api. DaemonCommandExecution。proceed(DaemonCommandExecution.java:104)at org. gradle。发射器守护进程服务器。执行LogAndCheckHealth。在org上执行(LogAndCheckHealth.java:55)。gradle。发射器守护进程服务器。api. DaemonCommandExecution。proceed(DaemonCommandExecution.java:104)at org. gradle。发射器守护进程服务器。执行LogToClient。doBuild(LogToClient.java:63)at org. gradle。发射器守护进程服务器。执行BuildCommandOnly。在org上执行(BuildCommandOnly.java:37)。gradle。发射器守护进程服务器。api. DaemonCommandExecution。proceed(DaemonCommandExecution.java:104)at org. gradle。发射器守护进程服务器。执行建立BuildEnvironment。doBuild(EstablishBuildEnvironment.java:84)at org. gradle。发射器。守护进程服务器。执行BuildCommandOnly。execute(BuildCommandOnly.java:37)gradle。发射器守护进程服务器。api. DaemonCommandExecution。继续(DaemonCommandExecution.java:104)at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:52)at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:52)at org. Gradle发射器守护进程服务器。后台进程状态协调器$ www.example.com 无法创建任务“:app:processDevDebugMainManifest”。1.run (ManagedExecutorImpl.java:49) Caused by: org.gradle.api.internal.tasks.DefaultTaskContainer$TaskCreationException: Could not create task ':app:processDevDebugMainManifest'.
在org. gradle. api. internal. tasks. DefaultTaskContainer. taskCreationException(DefaultTaskContainer.java:715)在org.gradle.api.internal.tasks.DefaultTaskContainer.access$600(DefaultTaskContainer.java:76)在org. gradle. api. internal. tasks. DefaultTaskContainer $TaskCreatingProvider. domainObjectCreationException(DefaultTaskContainer.java:707)
at org.gradle.api.internal.DefaultNamedDomainObjectCollection$AbstractDomainObjectCreatingProvider.tryCreate(DefaultNamedDomainObjectCollection.java:948) at org.gradle.api.internal.tasks.DefaultTaskContainer$TaskCreatingProvider.access$1401(DefaultTaskContainer.java:654) at org.gradle.api.internal.tasks.DefaultTaskContainer$TaskCreatingProvider$1.run(DefaultTaskContainer.java:680) at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29) at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68) at org.gradle.api.internal.tasks.DefaultTaskContainer$TaskCreatingProvider.tryCreate(DefaultTaskContainer.java:676) at org.gradle.api.internal.DefaultNamedDomainObjectCollection$AbstractDomainObjectCreatingProvider.calculateOwnValue(DefaultNamedDomainObjectCollection.java:929) at org.gradle.api.internal.provider.AbstractMinimalProvider.calculateValue(AbstractMinimalProvider.java:107) at org.gradle.api.internal.provider.FlatMapProvider.backingProvider(FlatMapProvider.java:68) at org.gradle.api.internal.provider.FlatMapProvider.getProducer(FlatMapProvider.java:77) at org.gradle.api.internal.provider.MappingProvider.getProducer(MappingProvider.java:58) at org.gradle.api.internal.provider.AbstractProperty.getProducer(AbstractProperty.java:178) at org.gradle.api.internal.provider.AbstractProperty.getProducer(AbstractProperty.java:178) at org.gradle.api.internal.provider.AbstractProperty.getProducer(AbstractProperty.java:178) at org.gradle.api.internal.provider.AbstractProperty.getProducer(AbstractProperty.java:178) at org.gradle.api.internal.file.collections.ProviderBackedFileCollection.visitDependencies(ProviderBackedFileCollection.java:50) at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext$TaskGraphImpl.getNodeValues(CachingTaskDependencyResolveContext.java:103) at org.gradle.internal.graph.CachingDirectedGraphWalker$GraphWithEmptyEdges.getNodeValues(CachingDirectedGraphWalker.java:213) at org.gradle.internal.graph.CachingDirectedGraphWalker.doSearch(CachingDirectedGraphWalker.java:121) at org.gradle.internal.graph.CachingDirectedGraphWalker.findValues(CachingDirectedGraphWalker.java:73) at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.getDependencies(CachingTaskDependencyResolveContext.java:66) ... 140 more **Caused by: java.lang.NullPointerException: Cannot invoke "Object.toString()" because "value" is null at com.android.build.gradle.internal.core.VariantDslInfoImpl$manifestPlaceholders$2.invoke(VariantDslInfoImpl.kt:854)** at com.android.build.gradle.internal.core.VariantDslInfoImpl$manifestPlaceholders$2.invoke(VariantDslInfoImpl.kt:851) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) at com.android.build.gradle.internal.core.VariantDslInfoImpl.getManifestPlaceholders(VariantDslInfoImpl.kt:851) at com.android.build.api.variant.impl.VariantImpl$manifestPlaceholders$2.invoke(VariantImpl.kt:121) at com.android.build.api.variant.impl.VariantImpl$manifestPlaceholders$2.invoke(VariantImpl.kt:116) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) at com.android.build.api.variant.impl.VariantImpl.getManifestPlaceholders(VariantImpl.kt:116) at com.android.build.api.variant.impl.ApplicationVariantImpl_Decorated.getManifestPlaceholders(Unknown Source) at com.android.build.gradle.tasks.ProcessApplicationManifest$CreationAction.configure(ProcessApplicationManifest.kt:421) at com.android.build.gradle.tasks.ProcessApplicationManifest$CreationAction.configure(ProcessApplicationManifest.kt:285) at com.android.build.gradle.internal.tasks.factory.TaskConfigurationActions.execute(TaskFactoryUtils.kt:94) at com.android.build.gradle.internal.tasks.factory.TaskConfigurationActions.execute(TaskFactoryUtils.kt:80) at org.gradle.api.internal.DefaultMutationGuard$2.execute(DefaultMutationGuard.java:44) at org.gradle.api.internal.DefaultMutationGuard$2.execute(DefaultMutationGuard.java:44) at org.gradle.configuration.internal.DefaultUserCodeApplicationContext$CurrentApplication$1.execute(DefaultUserCodeApplicationContext.java:123) at org.gradle.api.internal.DefaultCollectionCallbackActionDecorator$BuildOperationEmittingAction$1.run(DefaultCollectionCallbackActionDecorator.java:110) at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29) at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68) at org.gradle.api.internal.DefaultCollectionCallbackActionDecorator$BuildOperationEmittingAction.execute(DefaultCollectionCallbackActionDecorator.java:107) at org.gradle.internal.ImmutableActionSet$SetWithManyActions.execute(ImmutableActionSet.java:329) at org.gradle.api.internal.DefaultDomainObjectCollection.doAdd(DefaultDomainObjectCollection.java:262) at org.gradle.api.internal.DefaultNamedDomainObjectCollection.doAdd(DefaultNamedDomainObjectCollection.java:113) at org.gradle.api.internal.DefaultDomainObjectCollection.add(DefaultDomainObjectCollection.java:256) at org.gradle.api.internal.DefaultNamedDomainObjectCollection$AbstractDomainObjectCreatingProvider.tryCreate(DefaultNamedDomainObjectCollection.java:944) ... 166 more
- 在https://help.gradle.org获取更多帮助
1条答案
按热度按时间hmae6n7t1#
请在启动Flutter项目时检查您是否正在使用类似"dev"的flavor运行。