Open Eddystarz opened 3 years ago
Thanks for reporting this @Eddystarz . This can be cache issues with flutter.
Have you tried;
flutter clean
in your project directory and then flutter pub cache clean
and finally, run flutter pub get
Let me know if above works for you.
@olubunmitosin I get this error as well. Could you fix this please?
The plugin laravel_flutter_pusher
doesn't have a main class defined in
/home/verox/.pub-cache/hosted/pub.dev/laravel_flutter_pusher-0.0.4/android/src/main/java/com/github/olubunmitosin/laravel_flutter_pusher/LaravelFlutterPusherPlugin.java or
/home/verox/.pub-cache/hosted/pub.dev/laravel_flutter_pusher-0.0.4/android/src/main/kotlin/com/github/olubunmitosin/laravel_flutter_pusher/LaravelFlutterPusherPlugin.kt. This is likely to due to an incorrect androidPackage: com.github.olubunmitosin.laravel_flutter_pusher
or mainClass
entry in the plugin's pubspec.yaml.
If you are the author of this plugin, fix the androidPackage
entry or move the main class to any of locations used above. Otherwise, please contact the author of this plugin and consider using a different plugin in the
meanwhile.
The plugin
laravel_flutter_pusher
doesn't have a main class defined in /home/steinacoz/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/laravel_flutter_pusher-0.0.4/android/src/main/java/com/github/olubunmitosin/laravel_flutter_pusher/LaravelFlutterPusherPlugin.java or /home/steinacoz/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/laravel_flutter_pusher-0.0.4/android/src/main/kotlin/com/github/olubunmitosin/laravel_flutter_pusher/LaravelFlutterPusherPlugin.kt. This is likely to due to an incorrectandroidPackage: com.github.olubunmitosin.laravel_flutter_pusher
ormainClass
entry in the plugin's pubspec.yaml.