title: Flutter: FlutterFirebaseInstanceIDService.java uses or overrides a deprecated API
body: <p>Integrating Firebase messaging service in flutter app and using latest <code>firebase_messaging:^3.0.0</code> gradle in the flutter but while installing app showing error and I have already reinstall the app many times.</p>
  
  <pre><code>FlutterFirebaseInstanceIDService.java:21: error: cannot find symbol
  LocalBroadcastManager.getInstance(context).sendBroadcast(intent);
  FlutterFirebaseInstanceIDService.java uses or overrides a deprecated API.
  Note: Recompile with -Xlint:deprecation for details.
  </code></pre>
  
  <p>I have added these line in <code>build.gradle</code> in the android section, still showing the same error. I have taken ref. from <a href="https://stackoverflow.com/questions/49711773/how-to-recompile-with-xlintdeprecation">here</a>.</p>
  
  <pre><code>gradle.projectsEvaluated {
          tasks.withType(JavaCompile) {
              options.compilerArgs &lt;&lt; "-Xlint:deprecation"
          }
      }
  </code></pre>
  
  <p>How to resolve this error <code>-Xlint:deprecation</code> for flutter.</p>