Integrating Firebase messaging service in flutter app and using latest firebase_messaging:^3.0.0
gradle in the flutter but while installing app showing error and I have already reinstall the app many times.
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.
I have added these line in build.gradle
in the android section, still showing the same error. I have taken ref. from here.
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:deprecation"
}
}
How to resolve this error -Xlint:deprecation
for flutter.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…