4

私のアプリでは、すでに GCM を使用しており、Google コンソールで 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