我在一个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
我检查了模块的存储库,但我找不到解决方案,因为它是新的。
1条答案
按热度按时间x6yk4ghg1#
这是一个带有
android-ivs-react-native-player
库的known issue。有一个可用的解决方案。一个fix待定,将包含在下一个版本中。