Flutter-v2-FCM-Notifications icon indicating copy to clipboard operation
Flutter-v2-FCM-Notifications copied to clipboard

Unresolved reference: setPluginRegistrant

Open 3n16maa opened this issue 3 years ago • 3 comments

Hi @Amanullahgit

I'm trying to use a code but I receive an error: ' Unresolved reference: setPluginRegistrant' Could you please help me with that?

3n16maa avatar May 09 '22 04:05 3n16maa

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

Amanullahgit avatar May 09 '22 04:05 Amanullahgit

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`

Mufaddal5253110 avatar Jul 12 '22 06:07 Mufaddal5253110

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

Mufaddal5253110 avatar Jul 12 '22 06:07 Mufaddal5253110