Error: Attempt to invoke virtual method on a null object reference

See original GitHub issue

I’m on RN 0.67.4 and I’m trying to update from v8.0.0 to v8.1.0. iOS is working perfectly, but when I try to launch in Android I get the error Attempt to invoke virtual method 'boolean com.facebook.react.uimanager.FabricViewStateManager.hasStateWrapper()' on a null object reference.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
faboydscommented, Sep 21, 2022

Adding this to app/build.gradle worked for me:

dependencies {
    ...
    implementation ("androidx.appcompat:appcompat:1.3.1") {
        version {
            strictly '1.3.1'
        }
    }
    ...
}
0reactions
stetberncommented, Sep 20, 2022

An update to RN 0.68.3 & Gradle 7 solved that issue for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

java.lang.NullPointerException: Attempt to invoke virtual ...
Your app is crashing at: welcomePlayer.setText("Welcome Back, " + String.valueOf(mPlayer.getName(this)) + " !"); because mPlayer=null .
Read more >
How to fix an attempt to invoke virtual methods on a null object ...
First, in Java, all methods are virtual. The simplest way is to test the object reference to see if it is null. If...
Read more >
Attempt to Invoke Virtual Method on a Null Object Reference ...
While working on an Android application, the error Attempt to invoke virtual method on a null object reference can occur, a type of ......
Read more >
Runtime Error Solution in android Attempt to invoke a virtual ...
In this video, I want to show runtime Error Solution in android Attempt to invoke virtual method on a null object reference Caused...
Read more >
Attempt to invoke virtual method "" on a null object reference
So I am coding a physics based app in android studios and I keep getting this error, "Attempt to invoke virtual method ""...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found