admin 管理员组

文章数量: 1086019

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.

本文标签: Flutter build fails Cannot find symbol PluginRegistryRegistrar and FlutterMainStack Overflow