org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:greendao'.


Solutions on the web

Solution icon of github
Execution failed for task ':app:greendao'.

Solution icon of github
via GitHub by GavinHua
, 1 year ago
Execution failed for task ':app:greendao'.

Solution icon of github
via GitHub by buketanwan
, 10 months ago
Execution failed for task ':app:processDebugResources'.

Solution icon of github
Execution failed for task ':initFreeline'.

Solution icon of github
via GitHub by varju
, 9 months ago
Execution failed for task ':foo:bar:assetCompile'.

Solution icon of github
via GitHub by SiimKinks
, 1 year ago
Execution failed for task ':app:transformClassesWithDexForDevelopDebug'.

Solution icon of github
via GitHub by miomao656
, 1 year ago
Execution failed for task ':data:compileDebugJavaWithJavac'.

Solution icon of github
via GitHub by developerzhu
, 1 year ago
Execution failed for task ':App:resguard'.

Solution icon of github
via GitHub by hamberluo
, 1 year ago
Execution failed for task ':app:compileDebugJavaWithJavac'.


Stack trace

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:greendao'.
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
	at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
	at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:66)
	at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
	at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
	at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
	at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
	at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
	at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
Caused by: java.lang.RuntimeException: Error processing "MusicEntity": Can't resolve qualified name for Object. Try to not use on-demand imports or specify qualified name explicitly (line 173)
	at org.greenrobot.greendao.codemodifier.EntityClassASTVisitor.getTypeName(EntityClassASTVisitor.kt:76)
	at org.greenrobot.greendao.codemodifier.EntityClassASTVisitor.toVariableType(EntityClassASTVisitor.kt:69)
	at org.greenrobot.greendao.codemodifier.EntityClassASTVisitor.endVisit(EntityClassASTVisitor.kt:331)
	at org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:637)
	at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
	at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2782)
	at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:470)
	at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
	at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2782)
	at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:212)
	at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
	at org.greenrobot.greendao.codemodifier.EntityClassParser.parse(EntityClassParser.kt:66)
	at org.greenrobot.greendao.codemodifier.JdtCodeContext.parse(JdtCodeContext.kt:23)
	at org.greenrobot.greendao.codemodifier.Greendao3Generator$run$entities$1.invoke(Greendao3Generator.kt:29)
	at org.greenrobot.greendao.codemodifier.Greendao3Generator$run$entities$1.invoke(Greendao3Generator.kt:13)
	at kotlin.sequences.TransformingSequence$iterator$1.next(Sequences.kt:137)
	at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:98)
	at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:121)
	at kotlin.sequences.SequencesKt___SequencesKt.toCollection(_Sequences.kt:536)
	at kotlin.sequences.SequencesKt___SequencesKt.toMutableList(_Sequences.kt:560)
	at kotlin.sequences.SequencesKt___SequencesKt.toList(_Sequences.kt:553)
	at org.greenrobot.greendao.codemodifier.Greendao3Generator.run(Greendao3Generator.kt:38)
	at org.greenrobot.greendao.gradle.Greendao3GradlePlugin$createGreendaoTask$$inlined$apply$lambda$1.execute(Greendao3GradlePlugin.kt:103)
	at org.greenrobot.greendao.gradle.Greendao3GradlePlugin$createGreendaoTask$$inlined$apply$lambda$1.execute(Greendao3GradlePlugin.kt:14)
	at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:621)
	at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:604)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
	... 14 more
Caused by: java.lang.IllegalArgumentException: Can't resolve qualified name for Object. Try to not use on-demand imports or specify qualified name explicitly (line 173)
	at org.greenrobot.greendao.codemodifier.JdtUtilsKt.resolveName(JdtUtils.kt:69)
	at org.greenrobot.greendao.codemodifier.JdtUtilsKt.typeName(JdtUtils.kt:94)
	at org.greenrobot.greendao.codemodifier.EntityClassASTVisitor.getTypeName(EntityClassASTVisitor.kt:74)
	... 41 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.