You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting error when running app in flutter. Seems that error come from firebase messaging plugin, anyone had this issue before? Here is details of the error message:
`path/xxx/Application.kt: (13, 44): Unresolved reference: registerWith
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> Compilation error. See log for more details`
Here is my Application.kt file:
class Application() : FlutterApplication(), PluginRegistry.PluginRegistrantCallback {
override fun registerWith(registry: PluginRegistry?) {
val key: String? = FlutterFirebaseMessagingPlugin::class.java.canonicalName
if (!registry?.hasPlugin(key)!!) {
FlutterFirebaseMessagingPlugin.registerWith(registry?.registrarFor("io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingPlugin"));
}
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Getting error when running app in flutter. Seems that error come from firebase messaging plugin, anyone had this issue before? Here is details of the error message:
Here is my Application.kt file:
Android/buld.gradle:
Android/app/build.gradle:
flutter doctor --verbose:
Beta Was this translation helpful? Give feedback.
All reactions