NullPointerException: Attempt to invoke interface method 'com.facebook.react.interfaces.fabric.ReactSurface com.facebook.react.ReactHost.createSurface(android.content.Context, java.lang.String, android.os.Bundle)' #298
Unanswered
saiyam-zepto-dev
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Without a proper reproducer, it's going to be really hard to help you |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am migrating from 0.64 to 0.78.3 and my RN upgrade is complete.
Now i want to enable the new Architecture.
Initially i just turned on the newArch from the newArchEnabled property in build.gradle but that alone did not work.
Now i have made some changes in the mainactivity and mainapplication.java as well.
It gives me an error message as :-
NullPointerException: Attempt to invoke interface method 'com.facebook.react.interfaces.fabric.ReactSurface com.facebook.react.ReactHost.createSurface(android.content.Context, java.lang.String, android.os.Bundle)'
My Mainapplication.java oncreate() method looks like:-
public void onCreate() {
ActivityLifecycleCallback.register(this);
this.registerActivityCallbacks();
}
Your help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions