good morning, I expose my problem to see if someone can help me. I was going to approve my flutter app in debug mode but I got this error.
I leave you the source code and the error greetings
SOURCE CODE
package com.foodies.panama
import io.flutter.app.FlutterApplication
import io.flutter.plugin.common.PluginRegistry
import io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback
import io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService
class Application : FlutterApplication(), PluginRegistrantCallback {
override fun onCreate() {
super.onCreate()
FlutterFirebaseMessagingService.setPluginRegistrant(this)
}
override fun registerWith(registry: PluginRegistry?) {
FirebaseCloudMessagingPluginRegistrant.registerWith(registry)
}
}
ERROR
Launching lib/main.dart on SM G532M in debug mode…
e: /Users/PanamaMultimedia/Desktop/flutter_application/android/app/src/main/kotlin/com/foodies/panama/Application.kt: (14, 9): Unresolved reference: FirebaseCloudMessagingPluginRegistrant
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 2m 8s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)