Class file for com.google.firebase.iid.zzc not found

I have trying to build and old existing application that was last build in 2020 and getting below error while building APK

Task :app:compileDebugJavaWithJavac
D:\backup\EasyTrack\EasyTrackApp-20240118T062524Z-001\EasyTrackApp\EasyTrack-Platform-Added_2\EasyTrack-Platform-Added\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:27: error: cannot access zzc
public class FirebasePluginMessagingService extends FirebaseMessagingService {
^
class file for com.google.firebase.iid.zzc not found

Gradle - 8.0
IONIC - 4.12.0

Build.gradle (app)
image

Project.properties

Please suggest.

com.google.firebase.iid was deprecated back in 2020, so you might have updated the firebase dependency but still have old code that uses it

Thanks for reply.
I do not find this in any code or importing this in angular code , I how do I find where is it used ?

Also please refer build.gradle file above ,I have updated screenshots in question.

It’s used in some firebase plugin, do you have a push notification plugin installed or a firebase analytics plugin or similar firebase service plugin?

Yes I do have below is the screenshot of plugin folder I have plus list I got from Cordova ls command.
But I am not sure why they are different, if you can point out ?
folder


Cordova ls

edit
cordova-plugin-firebase 2.0.5 “Google Firebase Plugin”
cordova-plugin-firebasex 13.0.1 “Google Firebase Plugin”

yeah, it’s probably those firebase plugins, since you have two is very likely that they conflict with each other as they probably use different firebase versions and since Android will pick one it makes the code not compile.

cordova-plugin-firebase is deprecated, so I would start by removing that one and see if you can do the same with just cordova-plugin-firebasex, which is out of date, you should also try to update to version 16.4.0

Thanks for the help.

I was able to resolve this
is to change

configurations.all {
resolutionStrategy {

    force 'com.google.firebase:firebase-analytics:17.0.0', 'com.google.firebase:firebase-auth:18.0.0', 'com.google.firebase:firebase-firestore:20.0.0', 'com.google.firebase:firebase-functions:20.0.0', 'com.google.firebase:firebase-messaging:20.0.0', 'com.google.firebase:firebase-inappmessaging:20.0.1', 'com.google.firebase:firebase-inappmessaging-display:18.0.1', 'com.google.firebase:firebase-perf:18.0.0', 'com.google.firebase:firebase-config:18.0.0'
}        

}

to

configurations.all {
resolutionStrategy {
}
}
In File
easytrack-cordova-android-firebase-gradle-release.gradle