ENOENT:没有此类文件或目录,请打开"android/app/src/main/assets/index.android.bundle" [英] ENOENT: no such file or directory, open 'android/app/src/main/assets/index.android.bundle'

查看:137
本文介绍了ENOENT:没有此类文件或目录,请打开"android/app/src/main/assets/index.android.bundle"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我跑步时

npx react-native run-android --variant=release 

在RN 0.61.3中,我收到此错误消息.

in RN 0.61.3 and I receive this error message.

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

在没有发行版本的情况下调试时,构建可以正常工作.

The build works fine when debugging without the release variant.

推荐答案

由于某种原因,我需要按如下所示创建资产文件夹.

For some reason I needed to create the assets folder as per below.

android/app/src/main/assets

android/app/src/main/assets

这篇关于ENOENT:没有此类文件或目录,请打开"android/app/src/main/assets/index.android.bundle"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆