menu icon indicating copy to clipboard operation
menu copied to clipboard

Build failed with react native 0.69 (Android)

Open marcoburrometo opened this issue 3 years ago • 9 comments

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?

marcoburrometo avatar Jun 30 '22 15:06 marcoburrometo

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

arjendevos avatar Jul 21 '22 12:07 arjendevos

@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

robertherber avatar Aug 03 '22 09:08 robertherber

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

arjendevos avatar Aug 03 '22 09:08 arjendevos

@arjendevos Thanks!

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

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

robertherber avatar Aug 03 '22 11:08 robertherber

@robertherber This should work

arjendevos avatar Aug 03 '22 11:08 arjendevos

Same issue here, but not with expo

emberist avatar Aug 23 '22 13:08 emberist

@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 avatar Aug 23 '22 14:08 robertherber

@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

emberist avatar Aug 23 '22 14:08 emberist

@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...

kahx avatar Aug 24 '22 10:08 kahx

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

Naturalclar avatar Oct 18 '22 02:10 Naturalclar