【发布时间】:2023-03-26 13:19:01
【问题描述】:
我正在尝试将代码推送添加到我的 react 本机应用程序中,并遵循https://github.com/Microsoft/react-native-code-push 中提到的所有步骤 完成后,我的调试版本工作正常 我用:
$ ./gradlew installDebug
但发布构建失败,由以下命令给出:
$ ./gradlew installRelease
给出以下错误:
:app:generateReleaseResources
:app:mergeReleaseResources
:app:bundleReleaseJsAndAssets
FAILURE: Build failed with an exception.
* What went wrong:
Could not list contents of '/Users/jayshah/Documents/testdir/ExampleApp/node_modules/.bin/_mocha'.
GitHub 微软/react-native-code-push react-native-code-push - CodePush 服务的 React Native 插件。
我使用以下命令生成包:
curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle"
我的 react 原生版本是 0.18, 代码推送版本为0.16
【问题讨论】:
标签: android gradle react-native code-push