react-native-splash-view:compileDebugKotlin FAILED
Description
setup: MainActivity.kt: package com.*** import android.os.Bundle; // here import com.facebook.react.ReactActivity import com.splashview.SplashView import com.facebook.react.ReactActivityDelegate import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled import com.facebook.react.defaults.DefaultReactActivityDelegate
class MainActivity : ReactActivity() {
override fun onCreate(savedInstanceState: Bundle?) { SplashView.showSplashView(this) // Show the splash screen super.onCreate(savedInstanceState) } /**
- Returns the name of the main component registered from JavaScript. This is used to schedule
- rendering of the component. */ override fun getMainComponentName(): String = ***
/**
- 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) }
when reun app i got : react-native-splash-view:compileDebugKotlin FAILED
Steps to reproduce
on run app
Snack or a link to a repository
https://github.com
Version
0.0.14
React Native version
0.76.5
Platforms
Android
Architecture
None
Build type
Debug mode
Device
Android emulator
Device model
API 35
Are you using old architecture?
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 newArchEnabled=false hermesEnabled=false
try this with new architecture
newArchEnabled=true
@jagnesh still go an error
Just released v0.0.15 — now with support for the old architecture on Android too!