kotlin compiles my code with errors. seems like i'm not doing something right

72 Views Asked by At

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

1

There are 1 best solutions below

0
On

add this code to the MainActivity.kt file to configure react-native-splash-screen with kotlinoverride fun onCreate(savedInstanceState: Bundle?) { SplashScreen.show(this) super.onCreate(savedInstanceState) }