Skip to content

App crash with new Architecture #8129

@margotbignon

Description

@margotbignon

What happened?

Hi,

I recently upgraded my application to React Native 77 and am trying to use the new architecture.
I installed RNN 8.4.0 and the build works, but when I launch the app, it crashes with this error:

FATAL EXCEPTION: main
Process: com.xxx.xxx.qa, PID: 5116
java.lang.RuntimeException: Unable to create application com.xxx.MainApplication: java.lang.NullPointerException: Attempt to invoke interface method ‘com.facebook.react.devsupport.interfaces.DevSupportManager com.facebook.react.ReactHost.getDevSupportManager()’ on a null object reference
at android.app. ActivityThread.handleBindApplication(ActivityThread.java:7510)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2416)
at android.os.Handler.dispatchMessage(Handler.java:107)

Do you know how I can fix this?

Thanks a lot !

What was the expected behaviour?

No response

Was it tested on latest react-native-navigation?

  • I have tested this issue on the latest react-native-navigation release and it still reproduces.

Help us reproduce this issue!

No response

In what environment did this happen?

React Native Navigation version:8.4.0
React Native version: 0.77.0
Has Fabric (React Native's new rendering system) enabled: (yes/no) yes
Node version: 20.19.1
Device model: Pixl 7 pro
Android version: 15

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions