After updating to compose 1.4.5 compiler and kotli...
# compose
r
After updating to compose 1.4.5 compiler and kotlin 1.8.20, seems like Java 11 is not enough anymore as I am getting UnsupportedClassVersionError. Is this known and expected? 🤔
j
Dumb question but what are the biggest benefits to dropping support? What were the main pain points?
j
We gotta keep you on your toes. 😅🤣
More seriously though, I don't think there were any real benefits to dropping support. Our build team was just doing some routine upgrades, and given that Java17 is already a couple of years old, it wasn't clear anyone would notice. Anyway, that's why we're adding back support for Java11.
v
What would I need to do to update to Java 17? Am I missing something?
Copy code
$ ./gradlew --version
[...]
JVM:          17.0.6 (Homebrew 17.0.6+0)
but still getting the same error when trying to use 1.4.5 🤔 EDIT: Figured it out. The project was set to 11 😅
r
Seems also like Java 11 (or I guess other <17) is the default on GitHub actions. If so this might be even more annoying. I haven’t delved too much in this but I had a GitHub action that didn’t specify any step to setup Java and it was working before. Then I had to add a new step to setup Java version.
j
Any concerns in regard to android device compatibility? As far as I understand at the end everything gets desugared back to java 11 when building an APK so it should be fine?
j
Compose Compiler 1.4.6 with support for Java11 toolchain is released: https://developer.android.com/jetpack/androidx/releases/compose-compiler#1.4.6