Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

2.1K
Views
React native build error: Attempt to invoke virtual method'boolean com.facebook.react.uimanager.FabricViewStateManager.hasStateWrappper()

My previous builds work fine, but now I'm getting this error when I try to take a build. I don't know how to resolve this error.

If anyone faces the same issue please help me out.

Attempt to invoke virtual method'boolean com.facebook.react.uimanager.FabricViewStateManager.hasStateWrappper()' on a null object reference

enter image description here

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

I had same issue for this. do not use +

implementation "androidx.appcompat:appcompat:1.4.0-alpha01"

or

implementation "androidx.appcompat:appcompat:+"

Correct way:(lower than 1.4)

implementation "androidx.appcompat:appcompat:1.1.0"

see here: https://github.com/facebook/react-native/issues/31572

update

./gradlew -q app:dependencies > 1.txt

maybe you can see this:

| +--- com.github.AnJiaoDe:TabLayoutNiubility:V1.1.6 | | \--- androidx.appcompat:appcompat:+ -> 1.4.0-alpha01 (*)

3rd lib content a androidx.appcompat:appcompat:+

so you must be:

implementation ('com.github.AnJiaoDe:TabLayoutNiubility:V1.1.6') {
exclude group: 'androidx.appcompat', module: 'appcompat'
}
over 4 years ago · Santiago Trujillo Report

0

I was able to narrow down what was causing the error for me by using adb logcat and tracing the app.

The issue stemmed from both <Input> (from react-native-elements) and <TextInput> (from react-native). Both would cause the error, and the app would run without error if I commented out any Input/TextInput elements in the Componenets.

I wasn't quite able to get it to work with @kangear 's response, but it was close. After a lot of digging and testing, I was able to get the app to work properly with the following line of code in android\app\build.gradle:

implementation ("androidx.appcompat:appcompat:1.3.1") {
    version {
        strictly '1.3.1'
    }
}

I tried just using implementation 'androidx.appcompat:appcompat:1.3.1', but that wouldn't work either.

Hope this is able to save someone some time, as it took me quite a long time to figure it out!

over 4 years ago · Santiago Trujillo Report

0

android/app/build.gradle

paste the following code in dependencies section

implementation ("androidx.appcompat:appcompat:1.3.1") {
        version {
            strictly '1.3.1'
        }
    }
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!