错误:包com.google.firebase.messaging不存在

毛里西奥·卡德纳斯(Mauricio Cardenas)

我正在尝试构建项目,但是当我这样做时,会出现以下错误:“错误:包com.google.firebase.messaging不存在”,以及其他4种同类错误。

    package md5f64326b4609986d97810cf2ced03c9ce;


public class MyFirebaseMessagingService
extends com.google.firebase.messaging.FirebaseMessagingService
implements
    mono.android.IGCUserPeer
{
/** @hide */
public static final String __md_methods;
static {
    __md_methods = 
        "n_onMessageReceived(Lcom/google/firebase/messaging/RemoteMessage;)V:GetOnMessageReceived_Lcom_google_firebase_messaging_RemoteMessage_Handler\n" +
        "";
    mono.android.Runtime.register ("FCMClient.MyFirebaseMessagingService, LimBands.Droid, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", MyFirebaseMessagingService.class, __md_methods);
}


public MyFirebaseMessagingService ()
{
    super ();
    if (getClass () == MyFirebaseMessagingService.class)
        mono.android.TypeManager.Activate ("FCMClient.MyFirebaseMessagingService, LimBands.Droid, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", "", this, new java.lang.Object[] {  });
}


public void onMessageReceived (com.google.firebase.messaging.RemoteMessage p0)
{
    n_onMessageReceived (p0);
}

private native void n_onMessageReceived (com.google.firebase.messaging.RemoteMessage p0);

private java.util.ArrayList refList;
public void monodroidAddReference (java.lang.Object obj)
{
    if (refList == null)
        refList = new java.util.ArrayList ();
    refList.add (obj);
}

public void monodroidClearReferences ()
{
    if (refList != null)
        refList.clear ();
}
}

这是我的整个文件,位于obj文件夹中。我已经尝试删除bin / obj文件夹,手动删除并重新安装所有nuget软件包,更改nuget软件包版本(降级和升级),但是似乎没有任何效果。

我什至将某些文件与另一种工作方式相同的解决方案进行了比较,但没有发现任何差异。

怪异的阿里

更新

似乎更新为以下所有软件包的最新版本,并且更新Xamarin.Build.Download0.4.11也可以解决此问题。


您现在面临的问题是Xamarin尚未提供适当解决方案的常见问题,因此上次遇到此问题时,我已制定了此解决方法。

如果您同时使用Google地图和Firebase Cloud Messaging,则需要执行以下步骤:

  • 检查参考中以下DLL的版本,并升级或降级参考以匹配这些版本:

Xamarin.Firebase.Common-42.1021.1

Xamarin.Firebase.lid-42.1021.1

Xamarin.Firebase.Messaging-42.1021.1

Xamarin.GooglePlayServices.Base-42.1021.1

Xamarin.GooglePlayServices.Basement-42.1021.1

Xamarin.GooglePlayServices.GCM-42.1021.1

Xamarin.GooglePlayServices.lid-42.1021.1

Xamarin.GooglePlayServices.Location-42.1021.1

Xamarin.GooglePlayServices.Maps-42.1021.1

Xamarin.GooglePlayServices.Tasks-42.1021.1

  • 如果当前版本高于0.4.2,请检查xamarin构建DLL的当前版本,将其降级为0.4.2。

Xamarin.Build.Download-0.4.2

  • 万一问题仍然存在,请清理并生成解决方案,删除bin和obj文件夹,然后清理项目。

如果问题仍然存在,请发表评论,以便我跟进。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

“错误:程序包com.google.firebase.iid不存在”更新Firebase Crashlytics依赖项后

Xamarin-Google Cloud Messaging-错误:包com.google.android.gms.iid不存在

错误:包com.google.common.base不存在

错误包`com.google.android.gms ...`不存在

java maven导入问题:错误:包com.google.gson不存在

错误:包com.google.android.gcm不存在-迁移到Gradle之后

错误:包com.google.android.gms.appstate不存在

Google Cloud Endpoint 错误:包 MyApi 不存在

如果目录不存在,则 Firebase 错误消息

包不存在错误!

包com.google.api.client.extensions.android.http不存在

包com.google.android.gms.maps.model不存在

错误“包com_atlassian_clover不存在”

错误:包com.android.volley不存在

错误:包com.oculus.vrappframework不存在

错误:包com.getcapacitor.community.firebasecrashlytic不存在

错误:包 com.badlogic.gdx 不存在

Android Studio com.google.android.exoplayer2不存在错误

react-native-firebase安装-包io.invertase.firebase不存在吗?

“用户不存在” Firebase

Firebase 函数错误:默认 Firebase 应用不存在

firebase-admin错误不存在名为“ [DEFAULT]”的Firebase应用

NetBeans错误:包组织不存在

弹簧启动包不存在错误

Deborphan 返回不存在的包 - 错误?

关于“错误:类型com.google.firebase.iid.zzav被引用为com.google.firebase.messaging.zzd的接口”的想法吗?

试图将 Firebase 连接到应用程序,但 4 个月前不存在的错误

使用getData()从Firebase存储下载jpeg图像时出现错误13010“对象不存在”

firebase sendEmailVerification在不存在的电子邮件地址上不给出错误