Skip to content

Kotlin 2 build error when building Android with Expo 52 #1924

Open
@sfriedman-stripe

Description

@sfriedman-stripe

I upgraded to v0.45.0. No issues were found on iOS, but the Android compilation failed with an error like this: "node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/utils/Mappers.kt:1043:29 Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The actual metadata version is 2.1.0, but the compiler version 1.9.0 can read versions up to 2.0.0."
Currently, I'm using Expo 52, and it seems that it doesn't support upgrading to Kotlin 2.0.0 yet. What other solutions are there?

Originally posted by @ivan-moego in #1732

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions