错误amazon-ivs-react-native-player with Android

rdlzhqv9  于 2023-04-18  发布在  Android
关注(0)|答案(1)|浏览(126)

我在一个React-native项目中使用这个模块,但在运行npx react-native run-android时出现错误
错误:

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
e: file:///Users/uguraaktas/Documents/Projects/test/node_modules/amazon-ivs-react-native-player/android/src/main/java/com/amazonaws/ivs/reactnative/player/AmazonIvsView.kt:296:5 'when' expression must be exhaustive, add necessary 'BUFFERING', 'IDLE', 'ENDED' branches or 'else' branch instead

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':amazon-ivs-react-native-player:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

我检查了模块的存储库,但我找不到解决方案,因为它是新的。

x6yk4ghg

x6yk4ghg1#

这是一个带有android-ivs-react-native-player库的known issue。有一个可用的解决方案。一个fix待定,将包含在下一个版本中。

相关问题