Execution failed for task ':app:compileDebugKotlin'.
A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
i ran npm run android, but got this error after configuring react-native-splash-screen
add this code to the MainActivity.kt file to configure react-native-splash-screen with kotlin
override fun onCreate(savedInstanceState: Bundle?) { SplashScreen.show(this) super.onCreate(savedInstanceState) }