---
title: "Android crashes when it tries to render TextInput"
canonical_url: "https://www.nutrient.io/guides/react-native/troubleshooting/textinput-error-react-native-android/"
md_url: "https://www.nutrient.io/guides/react-native/troubleshooting/textinput-error-react-native-android.md"
last_updated: "2026-06-19T19:41:31.137Z"
description: "Solutions for common issues and errors in Nutrient React Native SDK with debugging tips and workarounds."
---

This is a [known React Native issue](https://github.com/facebook/react-native/issues/31572) with version 0.64 and later. React Native 0.64 isn't compatible with the latest version of [Appcompat](https://developer.android.com/jetpack/androidx/releases/appcompat), a library that’s part of the `androidx` namespace. When an app tries to render `TextInput`, a `NullPointerException` is thrown.

Below, as highlighted in the [GitHub issue](https://github.com/facebook/react-native/issues/31572#issuecomment-912017067) of the React Native repository, we outline what you can do to resolve the issue.

## Updating your Gradle build configuration

As a temporary workaround to solve the issue, pin the Appcompat library to version `1.3.1`, which doesn’t cause the `NullPointerException`:

```groovy

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

```
---

## Related pages

- [How to find your iOS app bundle ID easily](/guides/react-native/troubleshooting/finding-the-bundle-id.md)
- [Guide to adding a Nutrient license key in React Native](/guides/react-native/troubleshooting/add-license-key.md)
- [Fixing Android back button crash with Nutrient](/guides/react-native/troubleshooting/handling-back-navigation-with-react-native-screens.md)
- [Android Gradle Plugin Requires Java 11](/guides/react-native/troubleshooting/android-gradle-plugin-requires-java-11.md)
- [Troubleshooting](/guides/react-native/troubleshooting.md)
- [NutrientView inside a modal is blank or crashes on Android](/guides/react-native/troubleshooting/nutrientview-modal-android.md)
- [Out Of Memory Error React Native Android](/guides/react-native/troubleshooting/out-of-memory-error-react-native-android.md)
- [Find out your Nutrient version easily](/guides/react-native/troubleshooting/getting-the-currently-used-version.md)
- [Fix new architecture build issues in React Native](/guides/react-native/troubleshooting/new-architecture-build-issues.md)
- [Nightlies](/guides/react-native/troubleshooting/nightlies.md)
- [React Navigation](/guides/react-native/troubleshooting/react-navigation.md)
- [Managing Nutrient's render cache effectively](/guides/react-native/troubleshooting/outdated-render-cache.md)
- [Understanding bundle IDs for iOS app development](/guides/react-native/troubleshooting/what-is-a-bundle-id.md)
- [View controller-based status bar appearance](/guides/react-native/troubleshooting/view-controller-based-status-bar-appearance.md)
- [Understanding app IDs in Android development](/guides/react-native/troubleshooting/what-is-an-app-id.md)
- [Fix Xcode error code 65 for React Native on M1 Macs](/guides/react-native/troubleshooting/xcode-error-65-missing-required-target-architectures-react-native.md)
- [CMake/Ninja build error caused by long file paths on Windows](/guides/react-native/troubleshooting/windows-path-length-cmake-error.md)

