ReactNative开发问题_android12安装失败_开发包闪退
ReactNative开发的安卓包真机调试时提示Unable to load script.Make sure you ' re either running a metro
ReactNative开发问题_android12安装失败_开发包闪退-MakerLi

在真机调试的时候提示

Unable to load script.Make sure you ' re either running a metro server( run 'react-native start' ) or that your bundle 'index.android.bundle' is packaged correctly for release.

这是因为没有生成'index.android.bundle'文件。

解决方法是在/android/app/build.gradle下面添加

bundleInDebug:true