(sorry for my english)
Good morning,
I have created my first android project and run without any changes to the code already written.
This shows me the error: “Content not allowed in the prologue” in run build and in run tasks, show this error:
org.gradle.execution.MultipleBuildFailures: Build completed
with
1
failures.
at org.gradle.initialization.DefaultGradleLauncher$ExecuteTasks.run(DefaultGradleLauncher.java:
386
)
at org.gradle.
internal
.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:
301
)
at org.gradle.
internal
.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:
293
)
at org.gradle.
internal
.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:
175
)
at org.gradle.
internal
.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:
91
)
at org.gradle.
internal
.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:
31
)
at org.gradle.initialization.DefaultGradleLauncher.runTasks(DefaultGradleLauncher.java:
247
)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:
159
)
at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:
134
)
at org.gradle.
internal
.invocation.GradleBuildController$
1
.execute(GradleBuildController.java:
58
)
at org.gradle.
internal
.invocation.GradleBuildController$
1
.execute(GradleBuildController.java:
55
)
at org.gradle.
internal
.invocation.GradleBuildController$
3
.create(GradleBuildController.java:
82
)
at org.gradle.
internal
.invocation.GradleBuildController$
3
.create(GradleBuildController.java:
75
)
at org.gradle.
internal
.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:
183
)
at org.gradle.
internal
.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:
40
)
at org.gradle.
internal
.invocation.GradleBuildController.doBuild(GradleBuildController.java:
75
)
at org.gradle.
internal
.invocation.GradleBuildController.run(GradleBuildController.java:
55
)
at org.gradle.tooling.
internal
.provider.runner.ClientProvidedBuildActionRunner.run(ClientProvidedBuildActionRunner.java:
55
)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:
35
)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:
35
)
at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:
58
)
at org.gradle.tooling.
internal
.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:
32
)
at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:
39
)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$
3
.call(RunAsBuildOperationBuildActionRunner.java:
49
)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$
3
.call(RunAsBuildOperationBuildActionRunner.java:
44
)
at org.gradle.
internal
.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:
315
)
at org.gradle.
internal
.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:
305
)
at org.gradle.
internal
.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:
175
)
at org.gradle.
internal
.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:
101
)
at org.gradle.
internal
.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:
36
)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:
44
)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$
1
.transform(InProcessBuildActionExecuter.java:
49
)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$
1
.transform(InProcessBuildActionExecuter.java:
46
)
at org.gradle.composite.
internal
.DefaultRootBuildState.run(DefaultRootBuildState.java:
78
)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:
46
)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:
31
)
at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:
42
)
at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:
28
)
at org.gradle.tooling.
internal
.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:
78
)
at org.gradle.tooling.
internal
.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:
52
)
at org.gradle.tooling.
internal
.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:
59
)
at org.gradle.tooling.
internal
.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:
36
)
at org.gradle.tooling.
internal
.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:
68
)
at org.gradle.tooling.
internal
.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:
38
)
at org.gradle.tooling.
internal
.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:
37
)
at org.gradle.tooling.
internal
.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:
26
)
at org.gradle.tooling.
internal
.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:
43
)
at org.gradle.tooling.
internal
.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:
29
)
at org.gradle.tooling.
internal
.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:
60
)
at org.gradle.tooling.
internal
.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:
32
)
at org.gradle.tooling.
internal
.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:
55
)
at org.gradle.tooling.
internal
.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:
41
)
at org.gradle.tooling.
internal
.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:
48
)
at org.gradle.tooling.
internal
.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:
32
)
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:
104
)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:
37
)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:
104
)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:
26
)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:
104
)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:
34
)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:
104
)
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:
104
)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:
55
)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:
104
)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:
62
)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:
36
)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:
104
)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:
81
)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:
36
)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:
104
)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$
1
.run(StartBuildOrRespondWithBusy.java:
50
)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$
1
.run(DaemonStateCoordinator.java:
295
)
at org.gradle.
internal
.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:
63
)
at org.gradle.
internal
.concurrent.ManagedExecutorImpl$
1
.run(ManagedExecutorImpl.java:
46
)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1142
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:
617
)
at org.gradle.
internal
.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:
55
)
at java.lang.Thread.run(Thread.java:
745
)
Caused by: org.gradle.api.tasks.TaskExecutionException: Execution failed
for
task
':app:mergeDebugResources'
.
at org.gradle.api.
internal
.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:
38
)
at org.gradle.api.
internal
.tasks.execution.EventFiringTaskExecuter$
1
.executeTask(EventFiringTaskExecuter.java:
67
)
at org.gradle.api.
internal
.tasks.execution.EventFiringTaskExecuter$
1
.call(EventFiringTaskExecuter.java:
52
)
at org.gradle.api.
internal
.tasks.execution.EventFiringTaskExecuter$
1
.call(EventFiringTaskExecuter.java:
49
)
at org.gradle.
internal
.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:
315
)
at org.gradle.
internal
.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:
305
)
at org.gradle.
internal
.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:
175
)
at org.gradle.
internal
.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:
101
)
at org.gradle.
internal
.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:
36
)
at org.gradle.api.
internal
.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:
49
)
at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:
43
)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:
355
)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:
343
)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:
336
)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:
322
)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$
1
.execute(DefaultPlanExecutor.java:
134
)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$
1
.execute(DefaultPlanExecutor.java:
129
)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:
202
)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:
193
)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:
129
)
at org.gradle.execution.plan.DefaultPlanExecutor.process(DefaultPlanExecutor.java:
74
)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph.executeWithServices(DefaultTaskExecutionGraph.java:
178
)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph.execute(DefaultTaskExecutionGraph.java:
154
)
at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:
41
)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:
40
)
at org.gradle.execution.DefaultBuildExecuter.access$
000
(DefaultBuildExecuter.java:
24
)
at org.gradle.execution.DefaultBuildExecuter$
1
.proceed(DefaultBuildExecuter.java:
46
)
at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:
49
)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:
40
)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:
33
)
at org.gradle.initialization.DefaultGradleLauncher$ExecuteTasks.run(DefaultGradleLauncher.java:
383
)
...
83
more
Caused by: org.gradle.api.
internal
.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files
for
configuration
':app:_internal_aapt2_binary'
.
at org.gradle.api.
internal
.artifacts.configurations.DefaultConfiguration.rethrowFailure(DefaultConfiguration.java:
1175
)
at org.gradle.api.
internal
.artifacts.configurations.DefaultConfiguration.access$
2100
(DefaultConfiguration.java:
135
)
at org.gradle.api.
internal
.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:
1150
)
at org.gradle.api.
internal
.file.AbstractFileCollection.iterator(AbstractFileCollection.java:
72
)
at org.gradle.
internal
.snapshot.impl.DefaultFileSystemSnapshotter$FileCollectionLeafVisitorImpl.visitCollection(DefaultFileSystemSnapshotter.java:
240
)
at org.gradle.api.
internal
.file.AbstractFileCollection.visitLeafCollections(AbstractFileCollection.java:
233
)
at org.gradle.api.
internal
.file.CompositeFileCollection.visitLeafCollections(CompositeFileCollection.java:
205
)
at org.gradle.
internal
.snapshot.impl.DefaultFileSystemSnapshotter.snapshot(DefaultFileSystemSnapshotter.java:
126
)
at org.gradle.
internal
.fingerprint.impl.AbstractFileCollectionFingerprinter.fingerprint(AbstractFileCollectionFingerprinter.java:
47
)
at org.gradle.
internal
.fingerprint.impl.AbstractPathOnlyFileCollectionFingerprinter.fingerprint(AbstractPathOnlyFileCollectionFingerprinter.java:
36
)
at org.gradle.api.
internal
.changedetection.changes.TaskFingerprintUtil.fingerprintTaskFiles(TaskFingerprintUtil.java:
82
)
at org.gradle.api.
internal
.changedetection.state.CacheBackedTaskHistoryRepository.createExecution(CacheBackedTaskHistoryRepository.java:
123
)
at org.gradle.api.
internal
.changedetection.state.CacheBackedTaskHistoryRepository.access$
100
(CacheBackedTaskHistoryRepository.java:
46
)
at org.gradle.api.
internal
.changedetection.state.CacheBackedTaskHistoryRepository$
1
.getBeforeExecutionState(CacheBackedTaskHistoryRepository.java:
86
)
at org.gradle.api.
internal
.changedetection.changes.DefaultTaskArtifactStateRepository$TaskArtifactStateImpl.getExecutionStateChanges(DefaultTaskArtifactStateRepository.java:
189
)
at org.gradle.api.
internal
.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.getChangesSincePreviousExecution(ExecuteActionsTaskExecuter.java:
182
)
at org.gradle.
internal
.execution.impl.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:
52
)
at org.gradle.
internal
.execution.impl.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:
36
)
at org.gradle.
internal
.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:
34
)
at org.gradle.api.
internal
.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:
91
)
at org.gradle.api.
internal
.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:
91
)
at org.gradle.api.
internal
.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:
57
)
at org.gradle.api.
internal
.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:
119
)
at org.gradle.api.
internal
.tasks.execution.ResolvePreviousStateExecuter.execute(ResolvePreviousStateExecuter.java:
43
)
at org.gradle.api.
internal
.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:
93
)
at org.gradle.api.
internal
.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:
45
)
at org.gradle.api.
internal
.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:
94
)
at org.gradle.api.
internal
.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:
56
)
at org.gradle.api.
internal
.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:
55
)
at org.gradle.api.
internal
.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:
36
)
...
113
more
Caused by: org.gradle.
internal
.resolve.ModuleVersionResolveException: Could not resolve com.android.tools.build:aapt2:
3.4
.
0
-
5326820
.
Required by:
project :app
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver.resolveModule(RepositoryChainComponentMetaDataResolver.java:
103
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver.resolve(RepositoryChainComponentMetaDataResolver.java:
63
)
at org.gradle.api.
internal
.artifacts.ivyservice.resolveengine.ComponentResolversChain$ComponentMetaDataResolverChain.resolve(ComponentResolversChain.java:
95
)
at org.gradle.api.
internal
.artifacts.ivyservice.clientmodule.ClientModuleResolver.resolve(ClientModuleResolver.java:
63
)
at org.gradle.api.
internal
.artifacts.ivyservice.resolveengine.graph.builder.ComponentState.resolve(ComponentState.java:
193
)
at org.gradle.api.
internal
.artifacts.ivyservice.resolveengine.graph.builder.ComponentState.getMetadata(ComponentState.java:
143
)
at org.gradle.api.
internal
.artifacts.ivyservice.resolveengine.graph.builder.EdgeState.calculateTargetConfigurations(EdgeState.java:
173
)
at org.gradle.api.
internal
.artifacts.ivyservice.resolveengine.graph.builder.EdgeState.attachToTargetConfigurations(EdgeState.java:
129
)
at org.gradle.api.
internal
.artifacts.ivyservice.resolveengine.graph.builder.DependencyGraphBuilder.attachToTargetRevisionsSerially(DependencyGraphBuilder.java:
318
)
at org.gradle.api.
internal
.artifacts.ivyservice.resolveengine.graph.builder.DependencyGraphBuilder.resolveEdges(DependencyGraphBuilder.java:
217
)
at org.gradle.api.
internal
.artifacts.ivyservice.resolveengine.graph.builder.DependencyGraphBuilder.traverseGraph(DependencyGraphBuilder.java:
170
)
at org.gradle.api.
internal
.artifacts.ivyservice.resolveengine.graph.builder.DependencyGraphBuilder.resolve(DependencyGraphBuilder.java:
131
)
at org.gradle.api.
internal
.artifacts.ivyservice.resolveengine.DefaultArtifactDependencyResolver.resolve(DefaultArtifactDependencyResolver.java:
121
)
at org.gradle.api.
internal
.artifacts.ivyservice.DefaultConfigurationResolver.resolveGraph(DefaultConfigurationResolver.java:
171
)
at org.gradle.api.
internal
.artifacts.ivyservice.ShortCircuitEmptyConfigurationResolver.resolveGraph(ShortCircuitEmptyConfigurationResolver.java:
86
)
at org.gradle.api.
internal
.artifacts.ivyservice.ErrorHandlingConfigurationResolver.resolveGraph(ErrorHandlingConfigurationResolver.java:
73
)
at org.gradle.api.
internal
.artifacts.configurations.DefaultConfiguration$
7
.run(DefaultConfiguration.java:
580
)
at org.gradle.
internal
.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:
301
)
at org.gradle.
internal
.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:
293
)
at org.gradle.
internal
.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:
175
)
at org.gradle.
internal
.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:
91
)
at org.gradle.
internal
.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:
31
)
at org.gradle.api.
internal
.artifacts.configurations.DefaultConfiguration.resolveGraphIfRequired(DefaultConfiguration.java:
571
)
at org.gradle.api.
internal
.artifacts.configurations.DefaultConfiguration.access$
600
(DefaultConfiguration.java:
135
)
at org.gradle.api.
internal
.artifacts.configurations.DefaultConfiguration$
6
.run(DefaultConfiguration.java:
551
)
at org.gradle.api.
internal
.project.DefaultProjectStateRegistry$SafeExclusiveLockImpl.withLock(DefaultProjectStateRegistry.java:
244
)
at org.gradle.api.
internal
.artifacts.configurations.DefaultConfiguration.resolveExclusively(DefaultConfiguration.java:
547
)
at org.gradle.api.
internal
.artifacts.configurations.DefaultConfiguration.resolveToStateOrLater(DefaultConfiguration.java:
542
)
at org.gradle.api.
internal
.artifacts.configurations.DefaultConfiguration.access$
2200
(DefaultConfiguration.java:
135
)
at org.gradle.api.
internal
.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getSelectedArtifacts(DefaultConfiguration.java:
1158
)
at org.gradle.api.
internal
.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:
1147
)
...
140
more
Caused by: org.gradle.
internal
.resolve.ModuleVersionResolveException: Could not resolve com.android.tools.build:aapt2:
3.4
.
0
-
5326820
.
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.lambda$resolveComponentMetaData$
5
(ErrorHandlingModuleComponentRepository.java:
161
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.tryResolveAndMaybeBlacklist(ErrorHandlingModuleComponentRepository.java:
251
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.tryResolveAndMaybeBlacklist(ErrorHandlingModuleComponentRepository.java:
227
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.performOperationWithRetries(ErrorHandlingModuleComponentRepository.java:
220
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.resolveComponentMetaData(ErrorHandlingModuleComponentRepository.java:
158
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.ComponentMetaDataResolveState.process(ComponentMetaDataResolveState.java:
69
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.ComponentMetaDataResolveState.resolve(ComponentMetaDataResolveState.java:
61
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver.findBestMatch(RepositoryChainComponentMetaDataResolver.java:
138
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver.findBestMatch(RepositoryChainComponentMetaDataResolver.java:
119
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver.resolveModule(RepositoryChainComponentMetaDataResolver.java:
92
)
...
170
more
Caused by: org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.parser.MetaDataParseException: Could not parse POM https:
//dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/3.4.0-5326820/aapt2-3.4.0-5326820.pom
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.parser.PomReader$
2
.transform(PomReader.java:
143
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.parser.PomReader$
2
.transform(PomReader.java:
138
)
at org.gradle.
internal
.resource.local.LocalFileStandInExternalResource.withContentIfPresent(LocalFileStandInExternalResource.java:
190
)
at org.gradle.
internal
.resource.AbstractExternalResource.withContent(AbstractExternalResource.java:
38
)
at org.gradle.
internal
.resource.local.DefaultLocallyAvailableExternalResource.withContent(DefaultLocallyAvailableExternalResource.java:
104
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.parser.PomReader.<init>(PomReader.java:
138
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.parser.PomReader.<init>(PomReader.java:
159
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.parser.GradlePomModuleDescriptorParser.doParseDescriptor(GradlePomModuleDescriptorParser.java:
92
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.parser.GradlePomModuleDescriptorParser.doParseDescriptor(GradlePomModuleDescriptorParser.java:
60
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.parser.AbstractModuleDescriptorParser.parseDescriptor(AbstractModuleDescriptorParser.java:
48
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.parser.AbstractModuleDescriptorParser.parseMetaData(AbstractModuleDescriptorParser.java:
43
)
at org.gradle.api.
internal
.artifacts.repositories.metadata.DefaultMavenPomMetadataSource.parseMetaDataFromResource(DefaultMavenPomMetadataSource.java:
53
)
at org.gradle.api.
internal
.artifacts.repositories.metadata.DefaultMavenPomMetadataSource.parseMetaDataFromResource(DefaultMavenPomMetadataSource.java:
38
)
at org.gradle.api.
internal
.artifacts.repositories.metadata.AbstractRepositoryMetadataSource.parseMetaDataFromArtifact(AbstractRepositoryMetadataSource.java:
72
)
at org.gradle.api.
internal
.artifacts.repositories.metadata.AbstractRepositoryMetadataSource.create(AbstractRepositoryMetadataSource.java:
59
)
at org.gradle.api.
internal
.artifacts.repositories.metadata.DefaultMavenPomMetadataSource.create(DefaultMavenPomMetadataSource.java:
38
)
at org.gradle.api.
internal
.artifacts.repositories.resolver.ExternalResourceResolver.resolveStaticDependency(ExternalResourceResolver.java:
243
)
at org.gradle.api.
internal
.artifacts.repositories.resolver.MavenResolver.doResolveComponentMetaData(MavenResolver.java:
126
)
at org.gradle.api.
internal
.artifacts.repositories.resolver.ExternalResourceResolver$RemoteRepositoryAccess.resolveComponentMetaData(ExternalResourceResolver.java:
444
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository$ResolveAndCacheRepositoryAccess.resolveComponentMetaData(CachingModuleComponentRepository.java:
373
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.lambda$resolveComponentMetaData$
3
(ErrorHandlingModuleComponentRepository.java:
159
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.lambda$tryResolveAndMaybeBlacklist$
15
(ErrorHandlingModuleComponentRepository.java:
228
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.tryResolveAndMaybeBlacklist(ErrorHandlingModuleComponentRepository.java:
242
)
...
178
more
Caused by: org.xml.sax.SAXParseException; systemId: file:/C:/Users/habib/.gradle/caches/modules-
2
/files-
2.1
/com.android.tools.build/aapt2/
3.4
.
0
-
5326820
/43fa98913f5af793d0be6d6f77edc313250d10b/aapt2-
3.4
.
0
-
5326820
.pom; lineNumber:
2
; columnNumber:
1
; Contenu non autorisé dans le prologue.
at com.sun.org.apache.xerces.
internal
.parsers.DOMParser.parse(DOMParser.java:
257
)
at com.sun.org.apache.xerces.
internal
.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:
339
)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:
150
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.parser.PomReader.parseToDom(PomReader.java:
255
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.parser.PomReader.access$
100
(PomReader.java:
59
)
at org.gradle.api.
internal
.artifacts.ivyservice.ivyresolve.parser.PomReader$
2
.transform(PomReader.java:
141
)
...
200
more
Thank you beforehand to help me !