'firebase_messaging:compileDebugJavaWithJavac [closed]
Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. /home/janarthanan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-9.1.3/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingPlugin.java:20: error: cannot find symbol import com.google.firebase.iid.FirebaseInstanceId; ^ symbol: class FirebaseInstanceId location: package com.google.firebase.iid /home/janarthanan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-9.1.3/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingPlugin.java:21: error: cannot find symbol import com.google.firebase.iid.Metadata; ^ symbol: class Metadata location: package com.google.firebase.iid /home/janarthanan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-9.1.3/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingPlugin.java:152: error: cannot find symbol : Metadata.getDefaultSenderId(FirebaseApp.getInstance()); ^ symbol: variable Metadata location: class FlutterFirebaseMessagingPlugin /home/janarthanan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-9.1.3/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingPlugin.java:153: error: cannot find symbol FirebaseInstanceId.getInstance().deleteToken(senderId, ""); ^ symbol: variable FirebaseInstanceId location: class FlutterFirebaseMessagingPlugin /home/janarthanan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-9.1.3/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingPlugin.java:165: error: cannot find symbol : Metadata.getDefaultSenderId(FirebaseApp.getInstance()); ^ symbol: variable Metadata location: class FlutterFirebaseMessagingPlugin /home/janarthanan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-9.1.3/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingPlugin.java:166: error: cannot find symbol String token = FirebaseInstanceId.getInstance().getToken(senderId, ""); ^ symbol: variable FirebaseInstanceId location: class FlutterFirebaseMessagingPlugin Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 6 errors
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':firebase_messaging:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 9m 33s Running Gradle task 'assembleDebug'... 577.7s Exception: Gradle task assembleDebug failed with exit code 1
please help me to fix this
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
