DEV Community

Yassine Chraa
Yassine Chraa

Posted on

Some React Native Errors Solutions

The React Native Android build encountered multiple errors, leading to a failed build. These errors included missing dependencies, issues with the Android SDK configuration, and other errors that made the React Native development process challenging.

Image description

In this article, we present some similar errors that can appear in the Android build for React Native development and provide solutions to resolve them.

Error1: Cannot find symbol reactRootView.setIsFabric(BuildConfig.IS_NEW_ARCHITECTURE_ENABLED;

Image description

Solution:

  • Add "IS_NEW_ARCHITECTURE_ENABLED" variable to android> buildTypes > debug and android> buildTypes > release in app/build.gradle

Image description

Remark: we set this variable as false to disable the new architecture of react native if you want to use it replace with true.

Error2: Requested internal only, but not enough space;

Image description

Solution:

  • Remove build folder from android/app Image description

Error3: INSTALL_FAILED_INSUFFICIENT_STORAGE

Image description

Solution:

  • Open AndroidStudio and go to SDK Manager

Image description

Close your emulator and Wipe phone data

Image description

Top comments (0)