Pick the fix
A build spends a long time in kaptGenerateStubsDebugKotlin. Room and Hilt are the only processors. What should you do?
Hint 1 of 1
Do both libraries support KSP?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Switch Room and Hilt to KSP and remove the kapt plugin
Correct. Both support KSP, so the stub step disappears.
Why not the others?
- B Add more Gradle memory. Helps a little; doesn't remove the work.
- C Turn off incremental compilation. Slower.
- D Move to Java. Not a real option.