android - 从反应原生生成apk文件时出错
问题描述
> Task :app:bundleReleaseJsAndAssets FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:bundleReleaseJsAndAssets'.
> Process 'command 'npx.cmd'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 33s
1 actionable task: 1 executed
解决方案
您的 build.gradle 版本似乎有问题 root :
1-打开 Android Studio 2-打开你项目的 android 文件夹 3-android studio 会自动升级 gradle 版本(确保升级) 4-再次尝试生成 apk
推荐阅读
- python - Python,代码做第一件事然后循环到最后
- python - 如何使用 predict_generator 和 generate_arrays_for_predict 可视化 ROC 曲线?
- css - Marp-CLI:如何使用导入默认主题的自定义主题
- video-streaming - 如何避免在网站上下载 mp4 视频?
- linux - 无法从主机操作系统或从容器到主机操作系统的网络访问 docker 容器
- powershell - 使用 PowerShell 为所有用户启用“打印背景颜色和图像”
- javascript - 如何做同样的事情,但使用 .then 而不是 setTimeout?我有一个错误“无法读取未定义的属性'then'”
- scala - 如何仅使用 Kafka 主题中的最新偏移量
- verilog - 下一阶段的 Systemverilog 递归更新值
- arduino - ESP32 - 在一项任务中进行多任务处理