[X] I checked for possible duplicate issues, with possible answers.
Bug summary
Projects/DaySync/android/app/src/main/java/com/daysync/MainActivity.kt:13:29 Too many arguments for public open fun init(p0: Activity): Unit defined in com.zoontek.rnbootsplash.RNBootSplash
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
Compilation error. See log for more details
Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
BUILD FAILED in 2s
Library version
4.1.15
Environment info
i am debugging on pixel 7 device.
Steps to reproduce
npx react-native start --reset-cache
Reproducible sample code
package com.daysync
import com.facebook.react.ReactActivity
import com.facebook.react.ReactActivityDelegate
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
import com.facebook.react.defaults.DefaultReactActivityDelegate
import android.os.Bundle
import com.zoontek.rnbootsplash.RNBootSplash
class MainActivity : ReactActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
RNBootSplash.init(this, R.style.BootTheme) // ⬅️ initialize the splash screen
super.onCreate(savedInstanceState) // super.onCreate(null) with react-native-screens
}
/**
* Returns the name of the main component registered from JavaScript. This is used to schedule
* rendering of the component.
*/
override fun getMainComponentName(): String = "DaySync"
/**
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
* which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
*/
override fun createReactActivityDelegate(): ReactActivityDelegate =
DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled)
}
Before submitting a new issue
Bug summary
Projects/DaySync/android/app/src/main/java/com/daysync/MainActivity.kt:13:29 Too many arguments for public open fun init(p0: Activity): Unit defined in com.zoontek.rnbootsplash.RNBootSplash
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:compileDebugKotlin'.
Try:
BUILD FAILED in 2s
Library version
4.1.15
Environment info
Steps to reproduce
Reproducible sample code