I have an old java project, vith views and binding and lombok. I want to start modernizing it, so I added compose, kotlin, etc. But when I added all the dependencies, I am getting this error:
> Executing tasks: [:app:assembleDebug] in project /Users/tbarabas/AndroidStudioProjects/JavaViewApp
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:checkKotlinGradlePluginConfigurationErrors SKIPPED
> Task :app:generateDebugResValues
> Task :app:dataBindingMergeDependencyArtifactsDebug
> Task :app:generateDebugResources
> Task :app:packageDebugResources
> Task :app:dataBindingTriggerDebug
> Task :app:generateDebugBuildConfig
> Task :app:parseDebugLocalResources
> Task :app:mergeDebugResources
> Task :app:checkDebugAarMetadata
> Task :app:dataBindingGenBaseClassesDebug
> Task :app:mapDebugSourceSetPaths
> Task :app:createDebugCompatibleScreenManifests
> Task :app:extractDeepLinksDebug
> Task :app:processDebugMainManifest
> Task :app:processDebugManifest
> Task :app:javaPreCompileDebug
> Task :app:mergeDebugShaders
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :app:mergeDebugAssets
> Task :app:compressDebugAssets
> Task :app:desugarDebugFileDependencies
> Task :app:processDebugManifestForPackage
> Task :app:checkDebugDuplicateClasses
> Task :app:processDebugResources
> Task :app:mergeExtDexDebug
> Task :app:mergeLibDexDebug
> Task :app:mergeDebugJniLibFolders
> Task :app:mergeDebugNativeLibs
> Task :app:validateSigningDebug
> Task :app:writeDebugAppMetadata
> Task :app:writeDebugSigningConfigVersions
> Task :app:kaptGenerateStubsDebugKotlin
> Task :app:stripDebugDebugSymbols
Unable to strip the following libraries, packaging them as they are: libconceal.so.
> Task :app:kaptDebugKotlin
Annotation processors discovery from compile classpath is deprecated.
Set 'kapt.includepile.classpath=false' to disable discovery.
Run the build with '--info' for more details.
> Task :app:compileDebugKotlin NO-SOURCE
> Task :app:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> java.lang.RuntimeException: Failed to parse data binding compiler options. Params:
* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at .
* Exception is:
.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJavac'.
at .gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:130)
at .gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:293)
at .gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:128)
at .gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:116)
at .gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
at .gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
at .gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
at .gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)
at .gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
at .gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
at .gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
at .gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
at .gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:209)
at .gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
at .gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at .gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at .gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:166)
at .gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at .gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
at .gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
at .gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42)
at .gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:331)
at .gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:318)
at .gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.lambda$execute$0(DefaultTaskExecutionGraph.java:314)
at .gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:85)
at .gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:314)
at .gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:303)
at .gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:459)
at .gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:376)
at .gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at .gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:48)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Failed to parse data binding compiler options. Params:
at jdkpiler/com.sun.tools.javac.api.JavacTaskImpl.invocationHelper(JavacTaskImpl.java:168)
at jdkpiler/com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:100)
at jdkpiler/com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:94)
at .gradle.internalpiler.java.IncrementalCompileTask.call(IncrementalCompileTask.java:92)
at .gradle.api.internal.taskspile.AnnotationProcessingCompileTask.call(AnnotationProcessingCompileTask.java:94)
at .gradle.api.internal.taskspile.ResourceCleaningCompilationTask.call(ResourceCleaningCompilationTask.java:57)
at .gradle.api.internal.taskspile.JdkJavaCompiler.execute(JdkJavaCompiler.java:78)
at .gradle.api.internal.taskspile.JdkJavaCompiler.execute(JdkJavaCompiler.java:46)
at .gradle.api.internal.taskspile.daemon.AbstractIsolatedCompilerWorkerExecutor$CompilerWorkAction.execute(AbstractIsolatedCompilerWorkerExecutor.java:78)
at .gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63)
at .gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:54)
at .gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:48)
at .gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:100)
at .gradle.workers.internal.AbstractClassLoaderWorker.executeInClassLoader(AbstractClassLoaderWorker.java:48)
at .gradle.workers.internal.FlatClassLoaderWorker.run(FlatClassLoaderWorker.java:32)
at .gradle.workers.internal.FlatClassLoaderWorker.run(FlatClassLoaderWorker.java:22)
at .gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:103)
at .gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:72)
at .gradle.process.internal.worker.request.WorkerAction$1.call(WorkerAction.java:152)
at .gradle.process.internal.worker.child.WorkerLogEventListener.withWorkerLoggingProtocol(WorkerLogEventListener.java:41)
at .gradle.process.internal.worker.request.WorkerAction.lambda$run$1(WorkerAction.java:149)
at .gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:85)
at .gradle.process.internal.worker.request.WorkerAction.run(WorkerAction.java:141)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at .gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
at .gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at .gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
at .gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
at .gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:414)
at .gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at .gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:48)
Caused by: java.lang.RuntimeException: Failed to parse data binding compiler options. Params:
at android.databinding.annotationprocessor.ProcessDataBinding.readArguments(ProcessDataBinding.java:203)
at android.databinding.annotationprocessor.ProcessDataBinding.doProcess(ProcessDataBinding.java:97)
at android.databinding.annotationprocessor.ProcessDataBinding.process(ProcessDataBinding.java:87)
at .gradle.api.internal.taskspile.processing.DelegatingProcessor.process(DelegatingProcessor.java:62)
at .gradle.api.internal.taskspile.processing.DynamicProcessor.process(DynamicProcessor.java:52)
at .gradle.api.internal.taskspile.processing.DelegatingProcessor.process(DelegatingProcessor.java:62)
at .gradle.api.internal.taskspile.processing.TimeTrackingProcessor.access$401(TimeTrackingProcessor.java:37)
at .gradle.api.internal.taskspile.processing.TimeTrackingProcessor$5.create(TimeTrackingProcessor.java:99)
at .gradle.api.internal.taskspile.processing.TimeTrackingProcessor$5.create(TimeTrackingProcessor.java:96)
at .gradle.api.internal.taskspile.processing.TimeTrackingProcessor.track(TimeTrackingProcessor.java:117)
at .gradle.api.internal.taskspile.processing.TimeTrackingProcessor.process(TimeTrackingProcessor.java:96)
at jdkpiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:1023)
at jdkpiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:939)
at jdkpiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1267)
at jdkpiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1382)
at jdkpiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1234)
at jdkpiler/com.sun.tools.javac.main.JavaCompilerpile(JavaCompiler.java:916)
at jdkpiler/com.sun.tools.javac.api.JavacTaskImpl.lambda$doCall$0(JavacTaskImpl.java:104)
at jdkpiler/com.sun.tools.javac.api.JavacTaskImpl.invocationHelper(JavacTaskImpl.java:152)
... 32 more
Caused by: java.lang.NullPointerException
at android.databinding.tool.CompilerArguments$Companion.readFromOptions(CompilerArguments.kt:238)
at android.databinding.tool.CompilerArguments.readFromOptions(CompilerArguments.kt)
at android.databinding.annotationprocessor.ProcessDataBinding.readArguments(ProcessDataBinding.java:195)
... 50 more
What can I do to make things compile?
I set up a simplified project:
It looks like if I add kotlin, Lombok fails, so I need to add kapt with keepJavacAnnotationProcessors = true, if I add that, I am getting error.
I also tried ksp but there was no difference.