https://kotlinlang.org logo
m

MIC O

07/29/2023, 8:49 PM
Hi community, I'm getting this lintVitalRelease error during my app release build. My java Version is 11 while my compose version is 1.4.7 and kotlin 1.8.21 Task applintVitalAnalyzeRelease Could not load custom lint check jar file \Users\MIC O\.gradle\caches\transforms-3\615125d2406d82ceadc89fba942ee668\transformed\ui-graphics-release\jars\lint.jar java.lang.UnsupportedClassVersionError: androidx/compose/ui/graphics/lint/UiGraphicsIssueRegistry has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0 at java.base/java.lang.ClassLoader.defineClass1(Native Method) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
j

jw

07/29/2023, 9:12 PM
55 is Java 11, 61 is Java 17. The newest AGP requires Java 17, so they probably build using a newer AGP than you. You should update.
m

MIC O

07/30/2023, 4:12 AM
Thanks
3 Views