-
Notifications
You must be signed in to change notification settings - Fork 767
Firebase error when building project #741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have the same problem java.lang.RuntimeException: An error occurred while executing doInBackground() Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.iid.FirebaseInstanceId" on path... Using:
Android:
|
If you don't need the latest firebase core, I recommend to downgrade react-native-firebase to 11.5.0 to get it back to work until an update to the new firebase |
What solved my problem was removing the firebaseVersion = "+" from the android/build.gradle file. I still don't know what exactly is the cause of the problem but it's working now. |
Same problem here! |
Same problem here. |
Same issue |
Add the firebase-iid dependency:
|
In order to solve #741 it seems we need to stop using firebase iid that is [deprecated](https://firebase.google.com/docs/reference/android/com/google/firebase/iid/package-summary). As part of it, I bumped the firebase-messaging version to 21.1.0 Co-authored-by: Yogev Ben David <[email protected]>
Will be released soon |
after installing |
Same problem here! |
Hi there,
I'm trying to run my react native application but I'm receaving the following errors and I don't have any idea how to solve it. I'm using the last version of react-native-notifications (3.4.2). Any answer or solution would be very appreciated.
F:\ProjetosGit\gmex\node_modules\react-native-notifications\lib\android\app\src\main\java\com\wix\reactnativenotifications\fcm\FcmToken.java:12: error: cannot find symbol import com.google.firebase.iid.FirebaseInstanceId; ^ symbol: class FirebaseInstanceId location: package com.google.firebase.iid F:\ProjetosGit\gmex\node_modules\react-native-notifications\lib\android\app\src\main\java\com\wix\reactnativenotifications\fcm\FcmToken.java:13: error: cannot find symbol import com.google.firebase.iid.InstanceIdResult; ^ symbol: class InstanceIdResult location: package com.google.firebase.iid F:\ProjetosGit\gmex\node_modules\react-native-notifications\lib\android\app\src\main\java\com\wix\reactnativenotifications\fcm\FcmToken.java:78: error: cannot find symbol FirebaseInstanceId.getInstance().getInstanceId().addOnSuccessListener(new OnSuccessListener<InstanceIdResult>() { ^ symbol: class InstanceIdResult location: class FcmToken F:\ProjetosGit\gmex\node_modules\react-native-notifications\lib\android\app\src\main\java\com\wix\reactnativenotifications\fcm\FcmToken.java:80: error: cannot find symbol public void onSuccess(InstanceIdResult instanceIdResult) { ^ symbol: class InstanceIdResult F:\ProjetosGit\gmex\node_modules\react-native-notifications\lib\android\app\src\main\java\com\wix\reactnativenotifications\fcm\FcmToken.java:78: error: cannot find symbol FirebaseInstanceId.getInstance().getInstanceId().addOnSuccessListener(new OnSuccessListener<InstanceIdResult>() { ^ symbol: variable FirebaseInstanceId location: class FcmToken Note: F:\ProjetosGit\gmex\node_modules\react-native-notifications\lib\android\app\src\main\java\com\wix\reactnativenotifications\core\notification\PushNotification.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.
The text was updated successfully, but these errors were encountered: