I’m getting this error when trying to build a React native App (npm run android)
error: package com.facebook.react.modules.storage does not exist
import com.facebook.react.modules.storage.ReactDatabaseSupplier;
error: package com.facebook.react.modules.storage does not exist
com.facebook.react.modules.storage.ReactDatabaseSupplier.getInstance(getApplicationContext()).setMaximumSize(size);
React Native 63
I’ve already tried to remove node_modules and install everything again but nothing works at the moment
2
Answers
This was reported in rect-native bulletin, the issue started on Nov-4, 2022 and react-native team released a patch and workarounds.
https://github.com/facebook/react-native/issues/35210
For your use of 63.x, update to the patch, 63.5 and it will fix the build, try clean and build.
as mentioned here adding folowing content to your
android/build.gradle
and after that sync project with gradle will fix the issue: