Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
737 views
in Technique[技术] by (71.8m points)

xamarin - error: package com.google.firebase.messaging does not exist

I'm trying to build my project, but when I do, I get this error: "error: package com.google.firebase.messaging does not exist", along with other 4 errors of the same kind.

    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
" +
        "";
    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 ();
}
}

This is my whole file, it is on the obj folder. I already tried deleting the bin/obj folders, manually deleting and reinstalling all nuget packages, changing nuget package versions (downgrading and upgrading), but nothing seems to work.

I even compared some files with another solution that works the same way, and I found no differences.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...