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
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
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