为 android 构建时缺少类文件 - Pusher_channels_flutter
为 Android 构建时出现错误消息:
error: cannot access ConnectionEventListener
flutterEngine.getPlugins().add(new com.pusher.channels_flutter.PusherChannelsFlutterPlugin());
^
class file for com.pusher.client.connection.ConnectionEventListener not found
Error message when building for Android:
error: cannot access ConnectionEventListener
flutterEngine.getPlugins().add(new com.pusher.channels_flutter.PusherChannelsFlutterPlugin());
^
class file for com.pusher.client.connection.ConnectionEventListener not found
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如此处所述,在应用程序级别构建中添加推送器 Java 客户端依赖项.gradle 文件修复了该问题。
添加:
As mentioned here adding the pusher java client dependancy in the app level build.gradle file fixes the issue.
Add to: