You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.
I am using the latest kotlin version and build plugin version, but kaptRelease task seems to fail due to the error below. Is there anything i can do to prevent this from happening? Or should i use an older version?
AndroidAnnotations version: 4.7.0
Android compile SDK version: 29
Annotated code:
yourcode
Expected generated code:
expectedgeneratedcode
Actual generated code:
actualgeneratedcode
Stacktrace in case of AA crash:
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)
... 25 more
Caused by: java.lang.NullPointerException
at org.androidannotations.logger.appender.FileAppender.open(FileAppender.java:53)
at org.androidannotations.logger.LoggerContext.setEnvironment(LoggerContext.java:85)
at org.androidannotations.internal.AndroidAnnotationProcessor.init(AndroidAnnotationProcessor.java:84)
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.<init>(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)
... 27 more
The text was updated successfully, but these errors were encountered:
you can use logAppenderFile=false in annotation processor options this disables the attemt to create the logfile. to write logs to the console instead you can use logAppenderConsole=true
I see, so was this incorporated in the latest version? Because i downgraded the version to 4.6.0 and it works fine with it. I could give this a try and see how it functions 👍 🙇
This is a template, please adjust it accordingly to your specific issue.
You may also want to read our issue guide.
I am using the latest kotlin version and build plugin version, but kaptRelease task seems to fail due to the error below. Is there anything i can do to prevent this from happening? Or should i use an older version?
AndroidAnnotations version: 4.7.0
Android compile SDK version: 29
Annotated code:
Expected generated code:
Actual generated code:
Stacktrace in case of AA crash:
The text was updated successfully, but these errors were encountered: