Unsupported metadata version. Check that your Kotlin version is >= 1.0: java.lang.IllegalStateException: Unsupported metadata version. Check that your Kotlin version is >= 1.0

08 Nov. 2021, chapter 08-multi-module-applications.

After creating the onboarding module and moving things around, I was getting the following:

Execution failed for task ':app:kaptDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
   > java.lang.reflect.InvocationTargetException (no error message)

After digging a bit around, I found that the root cause was:

error: [Hilt]
Unsupported metadata version. Check that your Kotlin version is >= 1.0: java.lang.IllegalStateException: Unsupported metadata version. Check that your Kotlin version is >= 1.0

After updating Hilt to the last available version based on Gradle Build Setup, it worked.

Iā€™m leaving this here for future iterations.