I did update expo from 44 to 45 version. iOS works well.
Android build failed when I run. The error: Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target'
.
More details about error:
Task :expo-camera:compileDebugKotlin FAILED
e: file:///projects/temp/voya-cust/node_modules/expo-camera/android/src/main/java/expo/modules/camera/CameraModule.kt:25:76 Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper ‘-jvm-target’ option
e: file:///projects/temp/voya-cust/node_modules/expo-camera/android/src/main/java/expo/modules/camera/CameraViewManager.kt:19:76 Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper ‘-jvm-target’ option
e: file:///projects/temp/voya-cust/node_modules/expo-camera/android/src/main/java/expo/modules/camera/ExpoCameraView.kt:69:76 Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper ‘-jvm-target’ option
Task :expo-keep-awake:compileDebugKotlin FAILED
e: file:///projects/temp/voya-cust/node_modules/expo-keep-awake/android/src/main/java/expo/modules/keepawake/ExpoKeepAwakeManager.kt:18:76 Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper ‘-jvm-target’ option
e: file:///projects/temp/voya-cust/node_modules/expo-keep-awake/android/src/main/java/expo/modules/keepawake/KeepAwakeModule.kt:24:76 Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper ‘-jvm-target’ option
Task :expo-file-system:bundleLibRuntimeToDirDebug
FAILURE: Build completed with 5 failures.
Steps to reproduce:
- update react-native from 0.64.4 to 0.68. yarn add react-native@{{0.68}}
- update expo from 44 to 45. yarn add expo@{{45}}
- run android emulator from Android Studio or from terminal: npx react-native run-android