最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Flutter build fails: Cannot find symbol PluginRegistry.Registrar and FlutterMain - Stack Overflow

programmeradmin3浏览0评论

I am working on a Flutter project using the awesome_notifications plugin (version 0.9.3+1 also try new version), and I am encountering build errors when running flutter build apk or flutter run.

C:\Users...\awesome_notifications\AwesomeNotificationsPlugin.java:22: error: cannot find symbol import io.flutter.pluginmon.PluginRegistry.Registrar; ^ symbol: class Registrar location: interface PluginRegistry

C:\Users...\FlutterBitmapUtils.java:12: error: cannot find symbol import io.flutter.view.FlutterMain; ^ symbol: class FlutterMain location: package io.flutter.view

I am working on a Flutter project using the awesome_notifications plugin (version 0.9.3+1 also try new version), and I am encountering build errors when running flutter build apk or flutter run.

C:\Users...\awesome_notifications\AwesomeNotificationsPlugin.java:22: error: cannot find symbol import io.flutter.pluginmon.PluginRegistry.Registrar; ^ symbol: class Registrar location: interface PluginRegistry

C:\Users...\FlutterBitmapUtils.java:12: error: cannot find symbol import io.flutter.view.FlutterMain; ^ symbol: class FlutterMain location: package io.flutter.view

Share Improve this question asked Mar 28 at 12:43 rajadurai indiumrajadurai indium 1
Add a comment  | 

1 Answer 1

Reset to default 0

This is a issue with the deprecated Flutter V1 libraries on Android.

Updating to the latest version of the `awesome_notifications` plugin(v 0.10.1) show do fix this as the issue has been fixed by the plugin authors.

发布评论

评论列表(0)

  1. 暂无评论