Liza Catherine Ombyaw
Liza Catherine Ombyaw

Reputation: 904

React Native Android gives error when adding package

So I downgrade the version of my React Native to version 57.3 because there are so many bugs in the latest version. At first, the React Native Project wokrs well without adding any package like React Native Maps but when I add it the run it fresh it gives me an error. The setup of my React Native Project is correct.

I tried it to run as Administrator and not as Administrator.

enter image description here Environment:

"dependencies": { "react": "16.6.0-alpha.8af6728", "react-native": "0.57.3", "react-native-maps": "^0.23.0" }, "devDependencies": { "babel-jest": "24.5.0", "jest": "24.5.0", "metro-react-native-babel-preset": "0.53.1", "react-test-renderer": "16.6.0-alpha.8af6728" },

Upvotes: 0

Views: 131

Answers (1)

Sandy.....
Sandy.....

Reputation: 2870

I think there might be an issue with heap size. Please try adding android:largeHeap="true" to your Manifest.xml and rebuild your project with below command:

react-native run-android

Your manifest.xml will be like this:

android:name=".MainApplication"
android:allowBackup="true"
android:largeHeap="true"

Upvotes: 1

Related Questions