android - ENOENT : no such file or directory, 打开 'android/app/src/main/assets/index.android.bundle'

标签 android react-native

当我跑

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'

在没有发布变体的情况下调试时构建工作正常。

最佳答案

出于某种原因,我需要创建 Assets 文件夹如下。

android/app/src/main/assets

关于android - ENOENT : no such file or directory, 打开 'android/app/src/main/assets/index.android.bundle',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58767106/

相关文章:

xml - 关于膨胀 xml 的 InvocationTargetException - android

android - 如何在不使用相机应用程序的情况下在后台捕获图像

android - 在 kitkat 和 Lollipop 上时 event.getCreator() 的不同结果

android - React Native - 在单个应用程序中组合 2 种导航类型

javascript - 如何通过按 React-Native 中的一个抽屉项目从抽屉导航移至上一个屏幕?

android - 如何从 Android Google Drive App 运行 google 电子表格中的脚本?

android - 绘制矩形搜索栏

javascript - 类型错误 : undefined is not an object (evaluating 'this.props' ) - React Native

database - Cloud Firestore 是否支持 React Native

android - 无法获取通知数据,当应用程序处于后台或在 React-native-firebase android 中关闭时正文