Closed chitraarasu closed 2 years ago
based on the error message you posted, it seems that your pusher_beams_android
version, which is the root of the problem, is still set to 1.1.0, the faulty version. You need to make sure it's set to 1.0.2. After changing pusher_beams
version to 1.0.2 in pubspec.yaml delete your pubspec.lock file and run flutter clean
, flutter pub get
and flutter pub cache repair
Even with this, it somehow forces the plugin back to 1.1.0. Just realized this plugin would probably not work for me as such a serious issues takes so long to fix. I guess Pubnub is the answer then.
FYI this issue is still going on. Temporary workaround for me is downgrading to
pusher_beams: ^1.0.2
and making sure the pub cache corrects the android version topusher_beams_android-1.0.2
(which, for me at least, doesn't present this problem) by runningflutter pub cache repair
andflutter clean
.Originally posted by @thassio-vinicius in https://github.com/pusher/push-notifications-flutter/issues/28#issuecomment-1201592684
It is not working. I am facing the same issue I tried the older versions too.
C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\pusher_beams_android-1.1.0\android\src\main\kotlin\com\pusher\pusher_beams\PusherBeamsPlugin.kt: (23, 1): Class 'PusherBeamsPlugin' is not abstract and does not implement abstract member public abstract fun onNewIntent(p0: Intent): Boolean defined in io.flutter.plugin.common.PluginRegistry.NewIntentListener e: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\pusher_beams_android-1.1.0\android\src\main\kotlin\com\pusher\pusher_beams\PusherBeamsPlugin.kt: (45, 5): 'onNewIntent' overrides nothing
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':pusher_beams_android:compileDebugKotlin'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 35s Exception: Gradle task assembleDebug failed with exit code 1