在我的应用中,我已经在使用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)
什么可能导致这个问题?