title: Application.kt: Unresolved reference: firebasemessaging
body: <p>I am trying to update <code>firebase_messaging</code> to the new version <code>8.0.0-dev.10</code>.</p>
  <p>However, I am getting these errors:</p>
  <pre><code>Running Gradle task 'assembleDebug'...
  Application.kt: (5, 27): Unresolved reference: firebasemessaging
  Application.kt: (6, 27): Unresolved reference: firebasemessaging
  Application.kt: (11, 9): Unresolved reference: FlutterFirebaseMessagingService
  Application.kt: (15, 9): Unresolved reference: FirebaseMessagingPlugin
  </code></pre>
  <p>This is what my Application.kt looks like</p>
  <pre class="lang-sh prettyprint-override"><code>package com.example.opengames
  
  import io.flutter.app.FlutterApplication
  import io.flutter.plugin.common.PluginRegistry
  import io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin
  import io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService
  
  class Application : FlutterApplication(), PluginRegistry.PluginRegistrantCallback {
      override fun onCreate() {
          super.onCreate()
          FlutterFirebaseMessagingService.setPluginRegistrant(this);
      }
  
      override fun registerWith(registry: PluginRegistry?) {
          FirebaseMessagingPlugin.registerWith(registry?.registrarFor(&quot;io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin&quot;))
      }
  }
  </code></pre>
  <p>Any ideas?</p>