首页 > 解决方案 > 从反应原生生成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

标签: androidreactjsreact-nativeapk

解决方案


您的 build.gradle 版本似乎有问题 root :

1-打开 Android Studio 2-打开你项目的 android 文件夹 3-android studio 会自动升级 gradle 版本(确保升级) 4-再次尝试生成 apk


推荐阅读