4

在我的应用程序中,我已经在使用 GCM,并且在谷歌控制台中启用了 AppInvites。在我的项目主模块中,我添加了生成的 google-services.json 并应用了“com.google.gms.google-services”插件,但是当我尝试发送邀请时仍然出现以下错误:

AppInviteAgent﹕ Caller Package Name not found
android.content.pm.PackageManager$NameNotFoundException
        at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:114)
        at com.google.android.gms.common.util.e.b(SourceFile:823)
        at com.google.android.gms.common.util.e.d(SourceFile:841)
        at com.google.android.gms.appinvite.c.a.a(SourceFile:651)
        at com.google.android.gms.appinvite.c.a.a(SourceFile:229)
        at com.google.android.gms.appinvite.c.b.a(SourceFile:72)
        at com.google.android.gms.appinvite.h.a(SourceFile:34)
        at com.google.android.gms.common.service.g.run(SourceFile:178)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
        at java.lang.Thread.run(Thread.java:818)

什么可能导致这个问题?

4

0 回答 0