react-native-splash-view icon indicating copy to clipboard operation
react-native-splash-view copied to clipboard

react-native-splash-view:compileDebugKotlin FAILED

Open mghonem opened this issue 1 year ago • 6 comments

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

mghonem avatar Apr 04 '25 16:04 mghonem

Are you using old architecture?

jagnesh avatar Apr 05 '25 11:04 jagnesh

reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 newArchEnabled=false hermesEnabled=false

mghonem avatar Apr 05 '25 15:04 mghonem

try this with new architecture newArchEnabled=true

jagnesh avatar Apr 05 '25 15:04 jagnesh

@jagnesh still go an error

vhiz avatar Apr 07 '25 11:04 vhiz

@jagnesh still go an error

@vhiz Could you please share sample repo link.

jagnesh avatar Apr 08 '25 04:04 jagnesh

Just released v0.0.15 — now with support for the old architecture on Android too!

jagnesh avatar Apr 29 '25 03:04 jagnesh