我有一个科尔多瓦Android项目,我已经添加了Google Firebase Cloud Messaging Cordova Push Plugin无法解析com.google.firebase.iid.zzb类型。它是间接需要的.class文件中引用
我得到的MyFirebaseMessagingService.java文件下面的错误。
The hierarchy of the type MyFirebaseMessagingService is inconsistent
和
The type com.google.firebase.iid.zzb cannot be resolved. It is indirectly referenced from required .class files
我的类路径文件。
<?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>
我已尝试删除和添加不同的jar文件,但没有运气的各种组合。
有没有其他人在添加此插件之前遇到此错误?
感谢您的任何帮助。如果需要,我可以发布更多代码或截图。
提示:到底 “类路径” 的信息是您正在使用的JAR文件的列表。换句话说:**文本**。截图是最后的手段;只有在没有其他方式时才使用它。 – GhostCat