当我运行时
npx react-native run-android --variant=release
在RN 0.61.3中,我收到了这个错误消息。
ENOENT: no such file or directory, open 'android/app/src/main/assets/index.android.bundle'
当没有发布变体时,调试构建可以正常工作。