如何在抖动中接收一个信号通知

时间:2019-03-21 09:23:59

标签: java android dart flutter onesignal

我正在开发应用程序。 通过一个信号通知,我的应用程序中有一个功能(接收最新消息)。

当我在flutter项目中添加依赖项时。它给了我错误

  

(Android Gradle插件仅支持Kotlin Gradle插件版本   1.2.51及更高版本。项目'flutter_one_signal'正在使用版本1.1.51)

要消除此错误,我在位置

上编辑了gradle.build文件
  

(C:\ flutter.pub-cache \ hosted \ pub.dartlang.org \ flutter_one_signal-0.2.1 \ android / build.gradle)

但是在解决此依赖关系冲突之后。我现在遇到另一个错误,我不明白该如何删除?

e: C:\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_one_signal-0.2.1\android\src\main\kotlin\com\myhexaville\flutteronesignal\FlutterOneSignalPlugin.kt: (50, 35): Type mismatch: inferred type is Boolean? but Boolean was expected
e: C:\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_one_signal-0.2.1\android\src\main\kotlin\com\myhexaville\flutteronesignal\FlutterOneSignalPlugin.kt: (79, 28): Type mismatch: inferred type is String? but String was expected
e: C:\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_one_signal-0.2.1\android\src\main\kotlin\com\myhexaville\flutteronesignal\FlutterOneSignalPlugin.kt: (98, 80): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type String?

0 个答案:

没有答案