moxy-community / Moxy

Moxy is MVP library for Android with incremental annotation processor and ktx features
MIT License
327 stars 33 forks source link

Kotlin 2.0.0 + Hilt supporting #144

Open IvanMikhayluts opened 2 months ago

IvanMikhayluts commented 2 months ago

Unfortunately kotlin 2.0.0 + Hilt is not supported now. When trying to build gradle throws error:

Unable to read Kotlin metadata due to unsupported metadata version.: java.lang.IllegalStateException: Unable to read Kotlin metadata due to unsupported metadata version.
    at dagger.hilt.processor.internal.kotlin.KotlinMetadata.metadataOf(KotlinMetadata.java:206)
    at dagger.hilt.processor.internal.kotlin.KotlinMetadata.from(KotlinMetadata.java:187)
    at java.base/java.util.HashMap.computeIfAbsent(Unknown Source)
    at dagger.hilt.processor.internal.kotlin.KotlinMetadataFactory.create(KotlinMetadataFactory.java:57)
    at dagger.hilt.processor.internal.kotlin.KotlinMetadataFactory.create(KotlinMetadataFactory.java:68)
    at dagger.hilt.processor.internal.kotlin.KotlinMetadataUtil.containsConstructorWithDefaultParam(KotlinMetadataUtil.java:215)
Unable to read Kotlin metadata due to unsupported metadata version.

I don't check whether supports kotlin 2.0.0 without hilt. I assume that the problems will remain.