I have a Cordova Android project, and I have added the Google Firebase Cloud Messaging Cordova Push Plugin
I am getting the following error on the MyFirebaseMessagingService.java file.
The hierarchy of the type MyFirebaseMessagingService is inconsistent
and
The type com.google.firebase.iid.zzb cannot be resolved. It is indirectly referenced from required .class files
My classpath file.
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry exported="true" kind="lib" path="Downloads/google-play-services.jar/google-play-services.jar"/>
<classpathentry exported="true" kind="lib" path="Downloads/google-firebase-iid.jar"/>
<classpathentry exported="true" kind="lib" path="Downloads/firebase-messaging-9.2.0.jar"/>
<classpathentry exported="true" kind="lib" path="Downloads/android-support-v4.jar (2)/android-support-v4.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
I have tried various combinations of removing and adding different jar files but no luck.
Has anyone else come across this error before when adding this plugin?
Thanks for any help. I can post more code or screenshots if needed.