Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':xxx:kaptDebugKotlin'. #881

Closed
LittleNum opened this issue Dec 18, 2020 · 1 comment

Comments

@LittleNum
Copy link

1.5.0和1.5.1版本的compiler会出现kaptdebugexception,找不到org/apache/commons/collections4/MapUtils这个类,用以前版本的compiler没有问题,不知何故。

Caused by: org.jetbrains.kotlin.kapt3.base.util.KaptBaseError: Exception while annotation processing
at org.jetbrains.kotlin.kapt3.base.AnnotationProcessingKt.doAnnotationProcessing(annotationProcessing.kt:83)
at org.jetbrains.kotlin.kapt3.base.AnnotationProcessingKt.doAnnotationProcessing$default(annotationProcessing.kt:34)
at org.jetbrains.kotlin.kapt3.base.Kapt.kapt(Kapt.kt:45)
... 22 more
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/collections4/MapUtils
at com.alibaba.android.arouter.compiler.processor.BaseProcessor.init(BaseProcessor.java:51)
at com.alibaba.android.arouter.compiler.processor.AutowiredProcessor.init(AutowiredProcessor.java:58)
at org.jetbrains.kotlin.kapt3.base.incremental.IncrementalProcessor.init(incrementalProcessors.kt:33)
at org.jetbrains.kotlin.kapt3.base.ProcessorWrapper.init(annotationProcessing.kt:170)
at com.sun.tools.javac.processing.JavacProcessingEnvironment$ProcessorState.(JavacProcessingEnvironment.java:500)
at com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors$ProcessorStateIterator.next(JavacProcessingEnvironment.java:597)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:690)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)
at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)
at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)
at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1068)
at org.jetbrains.kotlin.kapt3.base.AnnotationProcessingKt.doAnnotationProcessing(annotationProcessing.kt:78)
... 24 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections4.MapUtils
... 37 more

@zhi1ong
Copy link
Member

zhi1ong commented Jan 4, 2021

断点看看,没有复现,而且 org/apache/commons/collections4/MapUtils 是 arouter-compiler 主动依赖的

@zhi1ong zhi1ong closed this as completed Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants