React-native打包遇到问题:Could not get BatchedBridge
发布时间:2020-12-15 07:36:15 所属栏目:百科 来源:网络整理
导读:打包后使用时仍然找不到js bridge 需要在根目录使用命令: react -native bundle -- platform android -- dev false -- entry -file index . android . js -- bundle -output android/app/src/main/assets/index . android . bundle -- sourcemap -output and
打包后使用时仍然找不到js bridge 需要在根目录使用命令: react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --sourcemap-output android/app/src/main/assets/index.android.map --assets-dest android/app/src/main/res/
并且如果没有assets文件夹,自己新建,另外注意自己的目录结构和上面的命令中的是否一致 以上 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |