7

我正在运行示例应用程序。当我为android生成apk时出现这样的错误......

FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':app:processReleaseResources'.
    > Failed to process resources, see aapt output above for details.

    * 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 59s
    39 actionable tasks: 36 executed, 3 up-to-date

请给我任何建议。谢谢你。

4

2 回答 2

0

在我的情况下有帮助:

react-native link

react-native run-android --variant=release
于 2021-07-31T11:39:01.937 回答
-1

您需要删除 ios、android 和节点模块文件夹。运行以下命令

1)  npm install //to get the node module folder

2) react-native upgrade //to get android and ios folder

3) react-native link // for linking the libraries

3) react-native run-ios/android
于 2018-05-23T05:23:33.530 回答