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

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
./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'
}
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!
paste the following code in dependencies section
implementation ("androidx.appcompat:appcompat:1.3.1") {
version {
strictly '1.3.1'
}
}