react-native - 反应本机推送通知无法构建
问题描述
我使用反应原生推送通知来查看我的通知。但是当我安装这个包时,这会出错。我用这个 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.
如何解决此错误?
解决方案
将软件包更新到最新版本:
npm update react-native-push-notification
事情会奏效
推荐阅读
- php - 如何在不同域中使用的 iframe 中保持登录状态?
- react-native - 如何获取当前导航状态 react-navigation V4 React-Native
- ios - 文件上传不在 React Native iOS 中上传,同样在 android 平台上工作
- gitlab-ci - 有没有办法将 GitLab“管道成功时合并”与 Review 应用程序(需要自动停止作业)一起使用?
- c# - 在将数据插入 Cosmos DB 之前修改数据
- azure-devops - Azure Devops 管道 pytest 收集失败 ModuleNotFoundError: No module named
- security - 与 WASM 相关的安全风险是什么?
- mysql - 获取所有常规数据,并检索隐私数据(如果具有值的列与所需参数匹配,则适用)在 MySQL 中
- html - 活动类不会更改为引导程序中导航栏的项目
- oracle - 执行视图时出错:函数计数在 denodo 中不可执行