airbnb / Showkase

🔦 Showkase is an annotation-processor based Android library that helps you organize, discover, search and visualize Jetpack Compose UI elements
https://medium.com/airbnb-engineering/introducing-showkase-a-library-to-organize-discover-and-visualize-your-jetpack-compose-elements-d5c34ef01095
Apache License 2.0
2.11k stars 107 forks source link

Class file has wrong version 61.0, should be 55.0 #362

Open dostalleos opened 11 months ago

dostalleos commented 11 months ago

If I update the SDK from 1.0.0-beta18 to 1.0.1 or 1.0.2 I get several errors on compile time.

Here is the log:

error: cannot access ShowkaseComposable
import com.airbnb.android.showkase.annotation.ShowkaseComposable;

class file has wrong version 61.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.

I found out that it's connected to the Java version. I'm using Java 17.

Do you have any idea how to resolve this? Thank you in advance.

vinaygaba commented 9 months ago

I'm not sure what this error is related to. Fwiw, this library also uses Java 17 - https://github.com/airbnb/Showkase/blob/master/showkase/build.gradle#L26

Open to ideas/fixes if someone wants to take a stab.