【发布时间】:2021-03-19 10:03:29
【问题描述】:
我刚刚在我的 react 本机应用程序上安装了 firebase 消息传递服务,安装模块后我在编译时收到此错误:`FAILURE: Build completed with 2 failures。
1: 任务因异常而失败。
-
在哪里: 构建文件'/home/fredy/Bureau/monapp/node_modules/@react-native-firebase/messaging/android/build.gradle' 行:75
-
出了什么问题: 评估项目“:@react-native-firebase_messaging”时出现问题。
没有方法签名:firebase_json_c54o9pv7otjdf4v6o99zlwlkv$_run_closure1.doCall() 适用于参数类型:(字符串,布尔值)值:[messaging_auto_init_enabled, true] 可能的解决方案:doCall(java.lang.Object)、findAll()、findAll()
- 尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。 ==================================================== ==============================
2:任务因异常而失败。
- 出了什么问题: 配置项目“:@react-native-firebase_messaging”时出现问题。
compileSdkVersion 未指定。
` 请帮帮我
【问题讨论】:
-
有同样的问题。现在已经3天了。 :(
标签: android firebase-cloud-messaging