Flutter-v2-FCM-Notifications
Flutter-v2-FCM-Notifications copied to clipboard
Unresolved reference: setPluginRegistrant
Hi @Amanullahgit
I'm trying to use a code but I receive an error: ' Unresolved reference: setPluginRegistrant' Could you please help me with that?
Hi @Amanullahgit
I'm trying to use a code
but I receive an error:
' Unresolved reference: setPluginRegistrant'
Could you please help me with that?
Paste in full error log
Same Error `app\src\main\kotlin\com\example\appname\Application.kt:12:51: error: unresolved reference: setPluginRegistrant FlutterFirebaseMessagingBackgroundService.setPluginRegistrant(this); ^
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':app:compileDebugKotlin'.
Compilation error. See log for more details
-
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 7m 41s Running Gradle task 'assembleDebug'... 464.6s Exception: Gradle task assembleDebug failed with exit code 1`
Got an answer on stackoverflow for same, If any one is facing same issue than checkout below link https://stackoverflow.com/questions/65408738/application-kt-unresolved-reference-firebasemessaging