Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [firebase_messaging] cannot find symbol io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingBackgroundService.setPluginRegistrant(this); #8780

Closed
leegiseong20030603 opened this issue May 26, 2022 · 7 comments
Labels
closed-by-bot resolution: no-response Customer did not respond after some time. Stale Issue with no recent activity type: bug Something isn't working

Comments

@leegiseong20030603
Copy link

leegiseong20030603 commented May 26, 2022

I was able to find out that the FlutterFirebaseMessagingBackgroundService class exists through the autocomplete function in Android Studio... But it is generated with red code and the following error occurs when running....

Package version: firebase_messaging: ^11.2.7

Android related gradle configuration files

// android
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
dependencies{
    implementation 'com.google.firebase:firebase-messaging'
}

// android:app
buildscript {
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.3'
        classpath 'com.google.gms:google-services:4.3.10'
    }
}
==================================================== ======Error

 cannot find symbol
        io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingBackgroundService.setPluginRegistrant(this);
                                                                                       ^
  symbol: method setPluginRegistrant(Application)
  location: class FlutterFirebaseMessagingBackgroundService

스크린샷 2022-05-26 오후 10 51 44

@leegiseong20030603 leegiseong20030603 added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels May 26, 2022
@darshankawar darshankawar added the triage Issue is currently being triaged. label May 27, 2022
@darshankawar
Copy link

@leegiseong20030603
Can you provide flutter doctor -v ? From your screenshot, I see the PluginRegistrantCallback class seems to deprecated. If so, what does it show to replicate with ? Can you try with new one and see if it helps ?

Also check this similar issue and see if it helps. #2077

@darshankawar darshankawar added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels May 27, 2022
@leegiseong20030603
Copy link
Author

@darshankawar
Sorry for the late reply....
Here is my current version and status.

That method didn't solve my issue

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.8.1, on macOS 11.6 20G165 darwin-x64, locale ko-KR)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.66.2)
[✓] Connected device (3 available)

• No issues found!

@google-oss-bot google-oss-bot added Needs Attention This issue needs maintainer attention. and removed blocked: customer-response Waiting for customer response, e.g. more information was requested. labels May 31, 2022
@darshankawar
Copy link

@leegiseong20030603
Are you importing all the required packages correctly that requires cannot find symbol io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingBackgroundService

@darshankawar darshankawar added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels May 31, 2022
@leegiseong20030603
Copy link
Author

@darshankawar
io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingBackgroundService
It shows in the preview function of android studio that there is a Firebase Cloud Messaging package, but an error occurs saying that there is no function of that class.

@google-oss-bot google-oss-bot added Needs Attention This issue needs maintainer attention. and removed blocked: customer-response Waiting for customer response, e.g. more information was requested. labels Jun 1, 2022
@darshankawar
Copy link

@leegiseong20030603
Can you provide complete code sample and when are you trying to use this ?

@darshankawar darshankawar added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels Jun 2, 2022
@google-oss-bot
Copy link

Hey @leegiseong20030603. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot google-oss-bot added the Stale Issue with no recent activity label Jun 13, 2022
@google-oss-bot
Copy link

Since there haven't been any recent updates here, I am going to close this issue.

@leegiseong20030603 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

@darshankawar darshankawar added resolution: no-response Customer did not respond after some time. and removed blocked: customer-response Waiting for customer response, e.g. more information was requested. triage Issue is currently being triaged. labels Jun 22, 2022
@firebase firebase locked and limited conversation to collaborators Jul 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
closed-by-bot resolution: no-response Customer did not respond after some time. Stale Issue with no recent activity type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants