Build version of okta-mobile-kotlin

Aparently the latest version GitHub - okta/okta-mobile-kotlin: Okta's Android Authentication SDK was built using Java22. Is there a reason / limitation for that?

Hi Noya,

Are you running into a specific issue with the SDK? If so can you provide more details and which modules in the SDK you are using (idx).

If you noticed okta-mobile-kotlin/gradle/gradle-daemon-jvm.properties at master · okta/okta-mobile-kotlin · GitHub this is just the tooling, and should not be related to the release artifacts.

Those are still java11 compatible.

Hello Erik,

We stumbled upon this error:

[2026-02-18T09:40:03.465Z] Caused by: java.lang.UnsupportedClassVersionError: com/okta/authfoundation/events/EventHandler has been compiled by a more recent version of the Java Runtime (class file version 66.0), this version of the Java Runtime only recognizes class file versions up to 65.0

while trying to bump com.okta.kotlin:bom from 2.0.3 to 2.0.5

What version of Android Studio are you using?

If you test a later studio version do you still see this error?

Hi Noya,

I received some more details from engineering, in the last build the tool chain defaulted to java22. Options:

  • Use jdk 22 in Android Studio. the produced android artifact can still be the min android sdk which is 26.

  • Use the older artifact and wait until 2.0.6 is published.

Thanks erik! I think we will wait :slight_smile: thanks for the support