Slackbot
08/11/2023, 7:35 PMTom Koptel
08/11/2023, 8:11 PM--stacktrace
?James Taylor
08/11/2023, 8:11 PMJames Taylor
08/11/2023, 8:17 PMTom Koptel
08/11/2023, 8:42 PM:app:kaptGenerateStubsG7DebugKotlin
and see why it fails to compile. Search for the compile log error. Judging by the name of the task you have an issue of compiling code generated by kapt
. I assume stubs are generated by either Dagger or Hilt, so it is likely that annotation compiler failed to generated necessary code for compilation to succeed. You need to see what is missing in your DI setup.James Taylor
08/11/2023, 9:15 PMJames Taylor
08/11/2023, 9:18 PM> Task :android-glucose:kaptGenerateStubsDebugKotlin FAILED
e: Could not load module <Error module>
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':android-glucose:kaptGenerateStubsDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details