Code Monkey home page Code Monkey logo

Comments (10)

samirBloux avatar samirBloux commented on July 17, 2024 1

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.

zoontek avatar zoontek commented on July 17, 2024

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.

devteam-technolabs avatar devteam-technolabs commented on July 17, 2024

@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

Screenshot 2024-02-07 at 11 45 57 AM

from react-native-bootsplash.

zoontek avatar zoontek commented on July 17, 2024

@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.

devteam-technolabs avatar devteam-technolabs commented on July 17, 2024

@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.

zoontek avatar zoontek commented on July 17, 2024

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.

zoontek avatar zoontek commented on July 17, 2024

Closed as no-one was able to provides a reproduction.

from react-native-bootsplash.

devteam-technolabs avatar devteam-technolabs commented on July 17, 2024

Hey @zoontek Sorry for the delay, was bit busy.
please find the reproducable code here https://we.tl/t-I8cGFKxw6Y

from react-native-bootsplash.

zoontek avatar zoontek commented on July 17, 2024

@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.

devteam-technolabs avatar devteam-technolabs commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.