android/codelab-android-hilt

Does hilt compatible with JAVA 11.

dixitpTheaa opened this issue · 1 comments

I was looking into hilt documentation : https://developer.android.com/training/dependency-injection/hilt-android#kts

It said compatible with java 8.
Screenshot 2022-01-26 at 10 07 15

But our project is compatible with Java 11,

I have created one demo and tried

compileOptions {
        sourceCompatibility JavaVersion.VERSION_11
        targetCompatibility JavaVersion.VERSION_11
    }

my project is not compiling, Is there any solution to run Hilt on JAVA 11?

Solved issue.