Comments (10)
Hello,
I haven't had time to publish a repository, but in my case, I encountered this error because the package name imported into the MainApplication and MainActivity files was different from what could be found in the android/app/build.gradle file.
android/app/build.gradle
namespace "com.test2"
defaultConfig {
applicationId "com.test2"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 40
versionName "1.67"
}
MainActivity
package com.test // replace by com.test2
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
MainApplication
package com.test // replace by com.test2
import android.app.Application
import com.facebook.react.PackageList
import com.facebook.react.ReactApplication
from react-native-bootsplash.
Could you create a repository to reproduce this? Someone already reported that and I was not able to do it. Maybe something is missing in the explanations.
from react-native-bootsplash.
@zoontek I too faced this issue, The issue is this import is not found
import com.zoontek.rnbootsplash.RNBootSplash
which is causing the issue becaused RNBootSplash do not get any references
from react-native-bootsplash.
@devteam-technolabs And I'm unable to reproduce it (the example app is using react native 0.73), which make me think that some users might miss something. Maybe they forget to run a Gradle sync?
I wish at least one person publish a repository to be able to see what's wrong here.
from react-native-bootsplash.
@zoontek I just created clean react native cli project on version 0.73.4 and added this package then it started showing like above. I can give you a reproducable repo but i can do that in weekend.
Note: I alsot tried running example app and it is running without any issues, It seems the issue is with freshly created projects only
from react-native-bootsplash.
Just tried to reproduce it using a fresh, new project, no issue whatsoever 🤷🏻♂️
Just in case, go to your /android
and run a ./gradlew clean
before running npm run android
/ yarn android
again.
from react-native-bootsplash.
Closed as no-one was able to provides a reproduction.
from react-native-bootsplash.
Hey @zoontek Sorry for the delay, was bit busy.
please find the reproducable code here https://we.tl/t-I8cGFKxw6Y
from react-native-bootsplash.
@devteam-technolabs Are you sure you uploaded the correct archive? This does not contains any of the CLI generated files (no colors.xml
, no bootsplash_logo.png
, etc) and the library is not even setted up (no BootSplash.init
in the MainActivity.kt
)
from react-native-bootsplash.
Thanks @zoontek for quick responses . It is fixed now, I removed everthing and then reinstalled and did gradle sync
from react-native-bootsplash.
Related Issues (20)
- RNBootSplash.init(this, R.style.BootTheme) is not supported in React Native 0.73.1 HOT 2
- Can't generate bootsplash screen with new version Sharp HOT 4
- Can I use windowSplashScreenBehaviour? HOT 4
- Manual `hide` functionality when using `useHideAnimation` HOT 5
- Discord for chatting about the library and problems HOT 2
- Loading HOT 1
- image splash not config for full screen HOT 1
- New Issue - Dark background does not work anymore HOT 7
- Unusual ghosting effect when going in and out of the app HOT 8
- [Android 14] [Samsung S22+] App icon appearing on launch screen before launch screen icon HOT 23
- Android - Unresolved reference: BootTheme HOT 3
- Support for Windows and MacOS
- Splash screen flickers on fade HOT 4
- Unable to use full-size image as a splash using `android:windowBackground`. HOT 5
- iOS - The application has terminated unexpectedly HOT 1
- Task :app:processDebugResources FAILED HOT 1
- [iOS] Launch screen disappears immediately after showing up HOT 1
- Google Play Error on upgrade to v5: "java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@3b54910" HOT 5
- Updating README for iOS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-bootsplash.