用Android Studio开发项目时使用gradle编译时报了如下错误信息:
Build file ‘E:\Gitee Enterprise\TWin-sdk\measurement\build.gradle’ line: 7
A problem occurred evaluating project ‘:measurement’.
No signature of method: build_dohrskqdwijtsogzzcjjsrmk6.android() is applicable for argument types: (build_dohrskqdwijtsogzzcjjsrmk6 r u n c l o s u r e 1 ) v a l u e s : [ b u i l d d o h r s k q d w i j t s o g z z c j j s r m k 6 _run_closure1) values: [build_dohrskqdwijtsogzzcjjsrmk6 runclosure1)values:[builddohrskqdwijtsogzzcjjsrmk6_run_closure1@1ae2c764]
-
Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights. -
Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating project ‘:measurement’.
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory S c r i p t R u n n e r I m p l . r u n ( D e f a u l t S c r i p t R u n n e r F a c t o r y . j a v a : 93 ) a t o r g . g r a d l e . c o n f i g u r a t i o n . D e f a u l t S c r i p t P l u g i n F a c t o r y ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93) at org.gradle.configuration.DefaultScriptPluginFactory ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93)atorg.gradle.configuration.DefaultScriptPluginFactoryScriptPluginImpl.lambda$apply 0 ( D e f a u l t S c r i p t P l u g i n F a c t o r y . j a v a : 133 ) a t o r g . g r a d l e . c o n f i g u r a t i o n . P r o j e c t S c r i p t T a r g e t . a d d C o n f i g u r a t i o n ( P r o j e c t S c r i p t T a r g e t . j a v a : 77 ) a t o r g . g r a d l e . c o n f i g u r a t i o n . D e f a u l t S c r i p t P l u g i n F a c t o r y 0(DefaultScriptPluginFactory.java:133) at org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:77) at org.gradle.configuration.DefaultScriptPluginFactory 0(DefaultScriptPluginFactory.java:133)atorg.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:77)atorg.gradle.configuration.DefaultScriptPluginFactoryScriptPluginImpl.apply(DefaultScriptPluginFactory.java:136)
at org.gradle.configuration.BuildOperationScriptPlugin$1.run(BuildOperationScriptPlugin.java:65)
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$3.execute(DefaultBuildOperationRunner.java:75)
at org.gradle.internal.operations.DefaultBuildOperationRunner 3. e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 68 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 153 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 68 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . r u n ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 56 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n E x e c u t o r . l a m b d a 3.execute(DefaultBuildOperationRunner.java:68) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68) at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:56) at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda 3.execute(DefaultBuildOperationRunner.java:68)atorg.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)atorg.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)atorg.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:56)atorg.gradle.internal.operations.DefaultBuildOperationExecutor.lambdarun 1 ( D e f a u l t B u i l d O p e r a t i o n E x e c u t o r . j a v a : 71 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . U n m a n a g e d B u i l d O p e r a t i o n W r a p p e r . r u n W i t h U n m a n a g e d S u p p o r t ( U n m a n a g e d B u i l d O p e r a t i o n W r a p p e r . j a v a : 45 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n E x e c u t o r . r u n ( D e f a u l t B u i l d O p e r a t i o n E x e c u t o r . j a v a : 71 ) a t o r g . g r a d l e . c o n f i g u r a t i o n . B u i l d O p e r a t i o n S c r i p t P l u g i n . l a m b d a 1(DefaultBuildOperationExecutor.java:71) at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.runWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:45) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:71) at org.gradle.configuration.BuildOperationScriptPlugin.lambda 1(DefaultBuildOperationExecutor.java:71)atorg.gradle.internal.operations.UnmanagedBuildOperationWrapper.runWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:45)atorg.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:71)atorg.gradle.configuration.BuildOperationScriptPlugin.lambdaapply 0 ( B u i l d O p e r a t i o n S c r i p t P l u g i n . j a v a : 62 ) a t o r g . g r a d l e . c o n f i g u r a t i o n . i n t e r n a l . D e f a u l t U s e r C o d e A p p l i c a t i o n C o n t e x t . a p p l y ( D e f a u l t U s e r C o d e A p p l i c a t i o n C o n t e x t . j a v a : 43 ) a t o r g . g r a d l e . c o n f i g u r a t i o n . B u i l d O p e r a t i o n S c r i p t P l u g i n . a p p l y ( B u i l d O p e r a t i o n S c r i p t P l u g i n . j a v a : 62 ) a t o r g . g r a d l e . a p i . i n t e r n a l . p r o j e c t . D e f a u l t P r o j e c t S t a t e R e g i s t r y 0(BuildOperationScriptPlugin.java:62) at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.apply(DefaultUserCodeApplicationContext.java:43) at org.gradle.configuration.BuildOperationScriptPlugin.apply(BuildOperationScriptPlugin.java:62) at org.gradle.api.internal.project.DefaultProjectStateRegistry 0(BuildOperationScriptPlugin.java:62)atorg.gradle.configuration.internal.DefaultUserCodeApplicationContext.apply(DefaultUserCodeApplicationContext.java:43)atorg.gradle.configuration.BuildOperationScriptPlugin.apply(BuildOperationScriptPlugin.java:62)atorg.gradle.api.internal.project.DefaultProjectStateRegistryProjectStateImpl.lambda$applyToMutableState 0 ( D e f a u l t P r o j e c t S t a t e R e g i s t r y . j a v a : 250 ) a t o r g . g r a d l e . a p i . i n t e r n a l . p r o j e c t . D e f a u l t P r o j e c t S t a t e R e g i s t r y 0(DefaultProjectStateRegistry.java:250) at org.gradle.api.internal.project.DefaultProjectStateRegistry 0(DefaultProjectStateRegistry.java:250)atorg.gradle.api.internal.project.DefaultProjectStateRegistryProjectStateImpl.fromMutableState(DefaultProjectStateRegistry.java:277)
at org.gradle.api.internal.project.DefaultProjectStateRegistry P r o j e c t S t a t e I m p l . a p p l y T o M u t a b l e S t a t e ( D e f a u l t P r o j e c t S t a t e R e g i s t r y . j a v a : 249 ) a t o r g . g r a d l e . c o n f i g u r a t i o n . p r o j e c t . B u i l d S c r i p t P r o c e s s o r . e x e c u t e ( B u i l d S c r i p t P r o c e s s o r . j a v a : 42 ) a t o r g . g r a d l e . c o n f i g u r a t i o n . p r o j e c t . B u i l d S c r i p t P r o c e s s o r . e x e c u t e ( B u i l d S c r i p t P r o c e s s o r . j a v a : 26 ) a t o r g . g r a d l e . c o n f i g u r a t i o n . p r o j e c t . C o n f i g u r e A c t i o n s P r o j e c t E v a l u a t o r . e v a l u a t e ( C o n f i g u r e A c t i o n s P r o j e c t E v a l u a t o r . j a v a : 35 ) a t o r g . g r a d l e . c o n f i g u r a t i o n . p r o j e c t . L i f e c y c l e P r o j e c t E v a l u a t o r ProjectStateImpl.applyToMutableState(DefaultProjectStateRegistry.java:249) at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:42) at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26) at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:35) at org.gradle.configuration.project.LifecycleProjectEvaluator ProjectStateImpl.applyToMutableState(DefaultProjectStateRegistry.java:249)atorg.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:42)atorg.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26)atorg.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:35)atorg.gradle.configuration.project.LifecycleProjectEvaluatorEvaluateProject.lambda$run 0 ( L i f e c y c l e P r o j e c t E v a l u a t o r . j a v a : 100 ) a t o r g . g r a d l e . a p i . i n t e r n a l . p r o j e c t . D e f a u l t P r o j e c t S t a t e R e g i s t r y 0(LifecycleProjectEvaluator.java:100) at org.gradle.api.internal.project.DefaultProjectStateRegistry 0(LifecycleProjectEvaluator.java:100)atorg.gradle.api.internal.project.DefaultProjectStateRegistryProjectStateImpl.lambda$applyToMutableState 0 ( D e f a u l t P r o j e c t S t a t e R e g i s t r y . j a v a : 250 ) a t o r g . g r a d l e . a p i . i n t e r n a l . p r o j e c t . D e f a u l t P r o j e c t S t a t e R e g i s t r y 0(DefaultProjectStateRegistry.java:250) at org.gradle.api.internal.project.DefaultProjectStateRegistry 0(DefaultProjectStateRegistry.java:250)atorg.gradle.api.internal.project.DefaultProjectStateRegistryProjectStateImpl.lambda$withProjectLock 3 ( D e f a u l t P r o j e c t S t a t e R e g i s t r y . j a v a : 310 ) a t o r g . g r a d l e . i n t e r n a l . w o r k . D e f a u l t W o r k e r L e a s e S e r v i c e . w i t h L o c k s ( D e f a u l t W o r k e r L e a s e S e r v i c e . j a v a : 213 ) a t o r g . g r a d l e . a p i . i n t e r n a l . p r o j e c t . D e f a u l t P r o j e c t S t a t e R e g i s t r y 3(DefaultProjectStateRegistry.java:310) at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:213) at org.gradle.api.internal.project.DefaultProjectStateRegistry 3(DefaultProjectStateRegistry.java:310)atorg.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:213)atorg.gradle.api.internal.project.DefaultProjectStateRegistryProjectStateImpl.withProjectLock(DefaultProjectStateRegistry.java:310)
at org.gradle.api.internal.project.DefaultProjectStateRegistry P r o j e c t S t a t e I m p l . f r o m M u t a b l e S t a t e ( D e f a u l t P r o j e c t S t a t e R e g i s t r y . j a v a : 291 ) a t o r g . g r a d l e . a p i . i n t e r n a l . p r o j e c t . D e f a u l t P r o j e c t S t a t e R e g i s t r y ProjectStateImpl.fromMutableState(DefaultProjectStateRegistry.java:291) at org.gradle.api.internal.project.DefaultProjectStateRegistry ProjectStateImpl.fromMutableState(DefaultProjectStateRegistry.java:291)atorg.gradle.api.internal.project.DefaultProjectStateRegistryProjectStateImpl.applyToMutableState(DefaultProjectStateRegistry.java:249)
at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.run(LifecycleProjectEvaluator.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$3.execute(DefaultBuildOperationRunner.java:75)
at org.gradle.internal.operations.DefaultBuildOperationRunner 3. e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 68 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 153 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 68 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . r u n ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 56 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n E x e c u t o r . l a m b d a 3.execute(DefaultBuildOperationRunner.java:68) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68) at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:56) at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda 3.execute(DefaultBuildOperationRunner.java:68)atorg.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)atorg.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)atorg.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:56)atorg.gradle.internal.operations.DefaultBuildOperationExecutor.lambdarun 1 ( D e f a u l t B u i l d O p e r a t i o n E x e c u t o r . j a v a : 71 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . U n m a n a g e d B u i l d O p e r a t i o n W r a p p e r . r u n W i t h U n m a n a g e d S u p p o r t ( U n m a n a g e d B u i l d O p e r a t i o n W r a p p e r . j a v a : 45 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n E x e c u t o r . r u n ( D e f a u l t B u i l d O p e r a t i o n E x e c u t o r . j a v a : 71 ) a t o r g . g r a d l e . c o n f i g u r a t i o n . p r o j e c t . L i f e c y c l e P r o j e c t E v a l u a t o r . e v a l u a t e ( L i f e c y c l e P r o j e c t E v a l u a t o r . j a v a : 63 ) a t o r g . g r a d l e . a p i . i n t e r n a l . p r o j e c t . D e f a u l t P r o j e c t . e v a l u a t e ( D e f a u l t P r o j e c t . j a v a : 721 ) a t o r g . g r a d l e . a p i . i n t e r n a l . p r o j e c t . D e f a u l t P r o j e c t . e v a l u a t e ( D e f a u l t P r o j e c t . j a v a : 151 ) a t o r g . g r a d l e . e x e c u t i o n . T a s k P a t h P r o j e c t E v a l u a t o r . c o n f i g u r e ( T a s k P a t h P r o j e c t E v a l u a t o r . j a v a : 41 ) a t o r g . g r a d l e . e x e c u t i o n . T a s k P a t h P r o j e c t E v a l u a t o r . c o n f i g u r e H i e r a r c h y ( T a s k P a t h P r o j e c t E v a l u a t o r . j a v a : 69 ) a t o r g . g r a d l e . c o n f i g u r a t i o n . D e f a u l t P r o j e c t s P r e p a r e r . p r e p a r e P r o j e c t s ( D e f a u l t P r o j e c t s P r e p a r e r . j a v a : 46 ) a t o r g . g r a d l e . c o n f i g u r a t i o n . B u i l d T r e e P r e p a r i n g P r o j e c t s P r e p a r e r . p r e p a r e P r o j e c t s ( B u i l d T r e e P r e p a r i n g P r o j e c t s P r e p a r e r . j a v a : 56 ) a t o r g . g r a d l e . c o n f i g u r a t i o n . B u i l d O p e r a t i o n F i r i n g P r o j e c t s P r e p a r e r 1(DefaultBuildOperationExecutor.java:71) at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.runWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:45) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:71) at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:63) at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:721) at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:151) at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:41) at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:69) at org.gradle.configuration.DefaultProjectsPreparer.prepareProjects(DefaultProjectsPreparer.java:46) at org.gradle.configuration.BuildTreePreparingProjectsPreparer.prepareProjects(BuildTreePreparingProjectsPreparer.java:56) at org.gradle.configuration.BuildOperationFiringProjectsPreparer 1(DefaultBuildOperationExecutor.java:71)atorg.gradle.internal.operations.UnmanagedBuildOperationWrapper.runWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:45)atorg.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:71)atorg.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:63)atorg.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:721)atorg.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:151)atorg.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:41)atorg.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:69)atorg.gradle.configuration.DefaultProjectsPreparer.prepareProjects(DefaultProjectsPreparer.java:46)atorg.gradle.configuration.BuildTreePreparingProjectsPreparer.prepareProjects(BuildTreePreparingProjectsPreparer.java:56)atorg.gradle.configuration.BuildOperationFiringProjectsPreparerConfigureBuild.run(BuildOperationFiringProjectsPreparer.java:52)
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$3.execute(DefaultBuildOperationRunner.java:75)
at org.gradle.internal.operations.DefaultBuildOperationRunner 3. e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 68 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 153 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 68 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . r u n ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 56 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n E x e c u t o r . l a m b d a 3.execute(DefaultBuildOperationRunner.java:68) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68) at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:56) at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda 3.execute(DefaultBuildOperationRunner.java:68)atorg.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)atorg.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)atorg.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:56)atorg.gradle.internal.operations.DefaultBuildOperationExecutor.lambdarun$1(DefaultBuildOperationExecutor.java:71)
at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.runWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:45)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:71)
at org.gradle.configuration.BuildOperationFiringProjectsPreparer.prepareProjects(BuildOperationFiringProjectsPreparer.java:40)
at org.gradle.initialization.DefaultGradleLauncher.prepareProjects(DefaultGradleLauncher.java:226)
at org.gradle.initialization.DefaultGradleLauncher.doClassicBuildStages(DefaultGradleLauncher.java:163)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:148)
at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:124)
at org.gradle.internal.invocation.GradleBuildController$1.create(GradleBuildController.java:72)
at org.gradle.internal.invocation.GradleBuildController$1.create(GradleBuildController.java:67)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:213)
at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:67)
at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:56)
at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner.runClientAction(AbstractClientProvidedBuildActionRunner.java:53)
at org.gradle.tooling.internal.provider.runner.ClientProvidedPhasedActionRunner.run(ClientProvidedPhasedActionRunner.java:47)
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:63)
at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
at org.gradle.tooling.internal.provider.FileSystemWatchingBuildActionRunner.run(FileSystemWatchingBuildActionRunner.java:77)
at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:41)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:49)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner 3. c a l l ( R u n A s B u i l d O p e r a t i o n B u i l d A c t i o n R u n n e r . j a v a : 44 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r 3.call(RunAsBuildOperationBuildActionRunner.java:44) at org.gradle.internal.operations.DefaultBuildOperationRunner 3.call(RunAsBuildOperationBuildActionRunner.java:44)atorg.gradle.internal.operations.DefaultBuildOperationRunnerCallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
at org.gradle.internal.operations.DefaultBuildOperationRunner 3. e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 68 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 153 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 68 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n R u n n e r . c a l l ( D e f a u l t B u i l d O p e r a t i o n R u n n e r . j a v a : 62 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n E x e c u t o r . l a m b d a 3.execute(DefaultBuildOperationRunner.java:68) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68) at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62) at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda 3.execute(DefaultBuildOperationRunner.java:68)atorg.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)atorg.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)atorg.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62)atorg.gradle.internal.operations.DefaultBuildOperationExecutor.lambdacall 2 ( D e f a u l t B u i l d O p e r a t i o n E x e c u t o r . j a v a : 76 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . U n m a n a g e d B u i l d O p e r a t i o n W r a p p e r . c a l l W i t h U n m a n a g e d S u p p o r t ( U n m a n a g e d B u i l d O p e r a t i o n W r a p p e r . j a v a : 54 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n E x e c u t o r . c a l l ( D e f a u l t B u i l d O p e r a t i o n E x e c u t o r . j a v a : 76 ) a t o r g . g r a d l e . l a u n c h e r . e x e c . R u n A s B u i l d O p e r a t i o n B u i l d A c t i o n R u n n e r . r u n ( R u n A s B u i l d O p e r a t i o n B u i l d A c t i o n R u n n e r . j a v a : 44 ) a t o r g . g r a d l e . l a u n c h e r . e x e c . I n P r o c e s s B u i l d A c t i o n E x e c u t e r . l a m b d a 2(DefaultBuildOperationExecutor.java:76) at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54) at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:76) at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:44) at org.gradle.launcher.exec.InProcessBuildActionExecuter.lambda 2(DefaultBuildOperationExecutor.java:76)atorg.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54)atorg.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:76)atorg.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:44)atorg.gradle.launcher.exec.InProcessBuildActionExecuter.lambdaexecute 0 ( I n P r o c e s s B u i l d A c t i o n E x e c u t e r . j a v a : 54 ) a t o r g . g r a d l e . c o m p o s i t e . i n t e r n a l . D e f a u l t R o o t B u i l d S t a t e . r u n ( D e f a u l t R o o t B u i l d S t a t e . j a v a : 86 ) a t o r g . g r a d l e . l a u n c h e r . e x e c . I n P r o c e s s B u i l d A c t i o n E x e c u t e r . e x e c u t e ( I n P r o c e s s B u i l d A c t i o n E x e c u t e r . j a v a : 53 ) a t o r g . g r a d l e . l a u n c h e r . e x e c . I n P r o c e s s B u i l d A c t i o n E x e c u t e r . e x e c u t e ( I n P r o c e s s B u i l d A c t i o n E x e c u t e r . j a v a : 29 ) a t o r g . g r a d l e . l a u n c h e r . e x e c . B u i l d T r e e S c o p e L i f e c y c l e B u i l d A c t i o n E x e c u t e r . l a m b d a 0(InProcessBuildActionExecuter.java:54) at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:86) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:53) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:29) at org.gradle.launcher.exec.BuildTreeScopeLifecycleBuildActionExecuter.lambda 0(InProcessBuildActionExecuter.java:54)atorg.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:86)atorg.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:53)atorg.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:29)atorg.gradle.launcher.exec.BuildTreeScopeLifecycleBuildActionExecuter.lambdaexecute 0 ( B u i l d T r e e S c o p e L i f e c y c l e B u i l d A c t i o n E x e c u t e r . j a v a : 33 ) a t o r g . g r a d l e . i n t e r n a l . b u i l d t r e e . B u i l d T r e e S t a t e . r u n ( B u i l d T r e e S t a t e . j a v a : 49 ) a t o r g . g r a d l e . l a u n c h e r . e x e c . B u i l d T r e e S c o p e L i f e c y c l e B u i l d A c t i o n E x e c u t e r . e x e c u t e ( B u i l d T r e e S c o p e L i f e c y c l e B u i l d A c t i o n E x e c u t e r . j a v a : 32 ) a t o r g . g r a d l e . l a u n c h e r . e x e c . B u i l d T r e e S c o p e L i f e c y c l e B u i l d A c t i o n E x e c u t e r . e x e c u t e ( B u i l d T r e e S c o p e L i f e c y c l e B u i l d A c t i o n E x e c u t e r . j a v a : 27 ) a t o r g . g r a d l e . t o o l i n g . i n t e r n a l . p r o v i d e r . C o n t i n u o u s B u i l d A c t i o n E x e c u t e r . e x e c u t e ( C o n t i n u o u s B u i l d A c t i o n E x e c u t e r . j a v a : 104 ) a t o r g . g r a d l e . t o o l i n g . i n t e r n a l . p r o v i d e r . C o n t i n u o u s B u i l d A c t i o n E x e c u t e r . e x e c u t e ( C o n t i n u o u s B u i l d A c t i o n E x e c u t e r . j a v a : 55 ) a t o r g . g r a d l e . t o o l i n g . i n t e r n a l . p r o v i d e r . S u b s c r i b a b l e B u i l d A c t i o n E x e c u t e r . e x e c u t e ( S u b s c r i b a b l e B u i l d A c t i o n E x e c u t e r . j a v a : 64 ) a t o r g . g r a d l e . t o o l i n g . i n t e r n a l . p r o v i d e r . S u b s c r i b a b l e B u i l d A c t i o n E x e c u t e r . e x e c u t e ( S u b s c r i b a b l e B u i l d A c t i o n E x e c u t e r . j a v a : 37 ) a t o r g . g r a d l e . t o o l i n g . i n t e r n a l . p r o v i d e r . S e s s i o n S c o p e L i f e c y c l e B u i l d A c t i o n E x e c u t e r . l a m b d a 0(BuildTreeScopeLifecycleBuildActionExecuter.java:33) at org.gradle.internal.buildtree.BuildTreeState.run(BuildTreeState.java:49) at org.gradle.launcher.exec.BuildTreeScopeLifecycleBuildActionExecuter.execute(BuildTreeScopeLifecycleBuildActionExecuter.java:32) at org.gradle.launcher.exec.BuildTreeScopeLifecycleBuildActionExecuter.execute(BuildTreeScopeLifecycleBuildActionExecuter.java:27) at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:104) at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:55) at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:64) at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:37) at org.gradle.tooling.internal.provider.SessionScopeLifecycleBuildActionExecuter.lambda 0(BuildTreeScopeLifecycleBuildActionExecuter.java:33)atorg.gradle.internal.buildtree.BuildTreeState.run(BuildTreeState.java:49)atorg.gradle.launcher.exec.BuildTreeScopeLifecycleBuildActionExecuter.execute(BuildTreeScopeLifecycleBuildActionExecuter.java:32)atorg.gradle.launcher.exec.BuildTreeScopeLifecycleBuildActionExecuter.execute(BuildTreeScopeLifecycleBuildActionExecuter.java:27)atorg.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:104)atorg.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:55)atorg.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:64)atorg.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:37)atorg.gradle.tooling.internal.provider.SessionScopeLifecycleBuildActionExecuter.lambdaexecute$0(SessionScopeLifecycleBuildActionExecuter.java:54)
at org.gradle.internal.session.BuildSessionState.run(BuildSessionState.java:67)
at org.gradle.tooling.internal.provider.SessionScopeLifecycleBuildActionExecuter.execute(SessionScopeLifecycleBuildActionExecuter.java:50)
at org.gradle.tooling.internal.provider.SessionScopeLifecycleBuildActionExecuter.execute(SessionScopeLifecycleBuildActionExecuter.java:36)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:59)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31)
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:47)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:31)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:65)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:39)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:29)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:35)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(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.util.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:75)
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:63)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:84)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:52)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator 1. r u n ( D a e m o n S t a t e C o o r d i n a t o r . j a v a : 297 ) a t o r g . g r a d l e . i n t e r n a l . c o n c u r r e n t . E x e c u t o r P o l i c y 1.run(DaemonStateCoordinator.java:297) at org.gradle.internal.concurrent.ExecutorPolicy 1.run(DaemonStateCoordinator.java:297)atorg.gradle.internal.concurrent.ExecutorPolicyCatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl 1. r u n ( M a n a g e d E x e c u t o r I m p l . j a v a : 48 ) a t o r g . g r a d l e . i n t e r n a l . c o n c u r r e n t . T h r e a d F a c t o r y I m p l 1.run(ManagedExecutorImpl.java:48) at org.gradle.internal.concurrent.ThreadFactoryImpl 1.run(ManagedExecutorImpl.java:48)atorg.gradle.internal.concurrent.ThreadFactoryImplManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
Caused by: groovy.lang.MissingMethodException: No signature of method: build_dohrskqdwijtsogzzcjjsrmk6.android() is applicable for argument types: (build_dohrskqdwijtsogzzcjjsrmk6 r u n c l o s u r e 1 ) v a l u e s : [ b u i l d d o h r s k q d w i j t s o g z z c j j s r m k 6 _run_closure1) values: [build_dohrskqdwijtsogzzcjjsrmk6 runclosure1)values:[builddohrskqdwijtsogzzcjjsrmk6_run_closure1@1ae2c764]
at build_dohrskqdwijtsogzzcjjsrmk6.run(E:\Gitee Enterprise\TWin-sdk\measurement\build.gradle:7)
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:91)
… 141 more
在网上搜索了一些帖子都没有解决,最后发现在:measurement模块的build文件当中增加了一段代码:multiDexEnable true,把这个关掉问题就解决了。