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.
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;
Solution:
- Add "IS_NEW_ARCHITECTURE_ENABLED" variable to android> buildTypes > debug and android> buildTypes > release in app/build.gradle
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;
Solution:
- Remove build folder from android/app
Error3: INSTALL_FAILED_INSUFFICIENT_STORAGE
Solution:
- Open AndroidStudio and go to SDK Manager
Close your emulator and Wipe phone data
Top comments (0)