🐛 Build Failure: Incompatible with Expo SDK 54 and react native 0.81.5
Description
The App fails to compile on react native 0.81.5 and expo SDK 54.
The error recieved is always FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':100mslive_react-native-hms:compileReleaseKotlin'.
A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
(more logs below)
100ms React Native Version
1.12.0
React Native Version
0.81.5
Steps to reproduce
- Setup an Expo 54 project with react native 0.81.5
- Run
eas build -p androidorreact native run:android
Expected results
I expected my Compilation to be Successful with my aab / apk file successfully compiled.
Code example, screenshot, or link to a repository
Code sample
"@100mslive/react-native-hms": "^1.12.0",
"@100mslive/react-native-room-kit": "^1.3.0",
"react-native": "0.81.5",
"expo": "^54.0.20",
Logs
Logs
Task :100mslive_react-native-hms:compileReleaseKotlin FAILED
e: file:///home/expo/workingdir/build/node_modules/@100mslive/react-native-hms/android/src/main/java/com/reactnativehmssdk/HMSHLSPlayerManager.kt:100:5 Return type mismatch: expected 'MutableMap<String, Int>?', actual 'Map<String, Int>'.
e: file:///home/expo/workingdir/build/node_modules/@100mslive/react-native-hms/android/src/main/java/com/reactnativehmssdk/HMSManager.kt:99:9 Unresolved reference 'currentActivity'.
e: file:///home/expo/workingdir/build/node_modules/@100mslive/react-native-hms/android/src/main/java/com/reactnativehmssdk/HMSManager.kt:99:26 Cannot infer type for this parameter. Specify it explicitly.
e: file:///home/expo/workingdir/build/node_modules/@100mslive/react-native-hms/android/src/main/java/com/reactnativehmssdk/HMSManager.kt:99:30 Cannot infer type for this parameter. Specify it explicitly.
e: file:///home/expo/workingdir/build/node_modules/@100mslive/react-native-hms/android/src/main/java/com/reactnativehmssdk/HMSManager.kt:441:5 Unresolved reference 'currentActivity'.
e: file:///home/expo/workingdir/build/node_modules/@100mslive/react-native-hms/android/src/main/java/com/reactnativehmssdk/HMSManager.kt:464:5 Unresolved reference 'currentActivity'.
e: file:///home/expo/workingdir/build/node_modules/@100mslive/react-native-hms/android/src/main/java/com/reactnativehmssdk/HMSManager.kt:473:5 Unresolved reference 'currentActivity'.
e: file:///home/expo/workingdir/build/node_modules/@100mslive/react-native-hms/android/src/main/java/com/reactnativehmssdk/HMSManager.kt:496:5 Unresolved reference 'currentActivity'.
e: file:///home/expo/workingdir/build/node_modules/@100mslive/react-native-hms/android/src/main/java/com/reactnativehmssdk/HMSManager.kt:787:20 Unresolved reference 'currentActivity'.
e: file:///home/expo/workingdir/build/node_modules/@100mslive/react-native-hms/android/src/main/java/com/reactnativehmssdk/HMSManager.kt:853:16 Unresolved reference 'setPictureInPictureParams'.
e: file:///home/expo/workingdir/build/node_modules/@100mslive/react-native-hms/android/src/main/java/com/reactnativehmssdk/HMSManager.kt:1088:22 Unresolved reference 'currentActivity'.
e: file:///home/expo/workingdir/build/node_modules/@100mslive/react-native-hms/android/src/main/java/com/reactnativehmssdk/HMSManager.kt:1125:22 Unresolved reference 'currentActivity'.
e: file:///home/expo/workingdir/build/node_modules/@100mslive/react-native-hms/android/src/main/java/com/reactnativehmssdk/HMSManager.kt:1716:9 Unresolved reference 'currentActivity'.
e: file:///home/expo/workingdir/build/node_modules/@100mslive/react-native-hms/android/src/main/java/com/reactnativehmssdk/HMSSDKViewManager.kt:25:5 Return type mismatch: expected 'MutableMap<String, Any>?', actual 'Map<String, Any>'.
> Task :react-native-svg:compileReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :app:createBundleReleaseJsAndAssets_SentryUpload_com.mytherapist.ng.mytherapistng@1.6.6+65_65
Copy `debugId` from packager source map to Hermes source map...
Done.
@ygit I've raised #1514 to Fix this.
Please review and Merge.
This has cost of a lot of hours waiting for a fix already.
@ygit ,
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.