GCM already works for me in my application, and I turned on AppInvites in the Google console. In my main project module, I added the created google-services.json and applied the com.google.gms.google-services plugin, but still when I try to send invitations, I get the following error:
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)
What can cause this problem?
source
share