react native打包时出现内存溢出的问题
![在这里插入图片描述](https://img-blog.csdnimg.cn/ce26a324c15546e6b6b5be5448972645.png)
解决方法
通过使用 --max-old-space-size 标志分配更多内存来解决这个问题
1)在 android->app->build.gradle 中
2)加上(只适用于android)
nodeExecutableAndArgs: ["node", "--max_old_space_size=8096"]
(如有不对,敬请指正)
解决方法
通过使用 --max-old-space-size 标志分配更多内存来解决这个问题
1)在 android->app->build.gradle 中
2)加上(只适用于android)
nodeExecutableAndArgs: ["node", "--max_old_space_size=8096"]
(如有不对,敬请指正)