Build failed with react native 0.69 (Android)
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?
It looks like the expo build.gradle the kotlinVersion is not specified, if we override this manually to 1.6.0 it works
@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?

@robertherber https://docs.expo.dev/versions/latest/sdk/build-properties/
@arjendevos Thanks!
Did you set it up like this, or did you configure anything else?
[
"expo-build-properties",
{
"android": {
"kotlinVersion": "1.6.10"
}
}
]
@robertherber This should work
Same issue here, but not with expo
@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 :)
@robertherber I fixed the issue specifying a Kotlin version
Following this https://github.com/react-native-webview/react-native-webview/issues/2578#issuecomment-1177372363
EDIT
The project build successfully, but the issues is not solved
@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...
Should be fixed in 0.6.0 without modifying your own build.gradle 😄