Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed with react native 0.69 (Android) #394

Closed
marcoburrometo opened this issue Jun 30, 2022 · 10 comments · Fixed by #457
Closed

Build failed with react native 0.69 (Android) #394

marcoburrometo opened this issue Jun 30, 2022 · 10 comments · Fixed by #457
Assignees

Comments

@marcoburrometo
Copy link

Hello!
I updated react native to 0.69.1 version but build fails on android.

I have this error:
Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1ù

Can someone help me?

@arjendevos
Copy link

It looks like the expo build.gradle the kotlinVersion is not specified, if we override this manually to 1.6.0 it works

@robertherber
Copy link

robertherber commented Aug 3, 2022

@arjendevos How and where do we do this? Is it in the expo package or menu package?

Is it here in expo/android/build.gradle somewhere?
Screenshot 2022-08-03 at 11 05 38

@arjendevos
Copy link

@robertherber https://docs.expo.dev/versions/latest/sdk/build-properties/

@robertherber
Copy link

@arjendevos Thanks!

Did you set it up like this, or did you configure anything else?

[
  "expo-build-properties",
  {
    "android": {
      "kotlinVersion": "1.6.10"
    }
  }
]

@arjendevos
Copy link

@robertherber This should work

@emberist
Copy link

Same issue here, but not with expo

@robertherber
Copy link

@arjendevos Thanks!

Did you set it up like this, or did you configure anything else?

[
  "expo-build-properties",
  {
    "android": {
      "kotlinVersion": "1.6.10"
    }
  }
]

Thanks @arjendevos, can confirm that it works for me. @emberist try out adding the expo-build-properties configured as above :)

@emberist
Copy link

emberist commented Aug 23, 2022

@robertherber I fixed the issue specifying a Kotlin version

Following this react-native-webview/react-native-webview#2578 (comment)

EDIT

The project build successfully, but the issues is not solved

@kahx
Copy link

kahx commented Aug 24, 2022

@robertherber I fixed the issue specifying a Kotlin version

Following this react-native-webview/react-native-webview#2578 (comment)

EDIT

The project build successfully, but the issues is not solved

Same...

@Naturalclar
Copy link
Member

Should be fixed in 0.6.0 without modifying your own build.gradle 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants