首页 > 解决方案 > 反应本机推送通知无法构建

问题描述

我使用反应原生推送通知来查看我的通知。但是当我安装这个包时,这会出错。我用这个 github 链接安装

https://github.com/zo0r/react-native-push-notification

但是当我运行 react native 项目时,它会在我的 linux pc 中显示此错误消息。

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-push-notification:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

如何解决此错误?

标签: react-nativepush-notification

解决方案


将软件包更新到最新版本:

npm update react-native-push-notification

事情会奏效


推荐阅读