title: Gradle task assembleDebug failed with exit code 1 when adding firebase_messaging
body: <p>I have build a simple chat app, it all works fine, I have migrated it to Androidx. When I add firebase_messaging to my dependancies I get :- Finished with error: Gradle task assembleDebug failed with exit code 1</p>
  
  <p>I have the following currently in my Dependencies, and everything works great.</p>
  
  <pre><code>dependencies:
    flutter:
      sdk: flutter
    url_launcher: ^5.0.5
    cupertino_icons: ^0.1.2
    page_transition: ^1.1.4
    shared_preferences: ^0.5.3+2
    firebase_core: ^0.4.0+6
    firebase_auth: ^0.11.1+8
    cloud_firestore: ^0.12.7
    animated_text_kit: ^1.3.1
    modal_progress_hud: ^0.1.3
    flutter_form_builder: ^3.2.8
    geolocator: ^5.0.1
    toast: ^0.1.5
  </code></pre>
  
  <p>I am trying to add :- </p>
  
  <pre><code>firebase_messaging: ^5.1.4
  </code></pre>
  
  <p>when I run the app I get
  Finished with error: Gradle task assembleDebug failed with exit code 1</p>