olubunmitosin / laravel_flutter_pusher

An easy pusher package for use with Laravel Echo. Supports Null satefy
MIT License
6 stars 16 forks source link

Error runnng Flutter pub get #4

Open Eddystarz opened 3 years ago

Eddystarz commented 3 years ago

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 incorrect androidPackage: com.github.olubunmitosin.laravel_flutter_pusher or mainClass entry in the plugin's pubspec.yaml.

olubunmitosin commented 2 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.

Verox001 commented 1 year ago

@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.