我正在尝试在我的应用中实现应用邀请。这是我正在使用的java代码:
Intent intent = new AppInviteInvitation.IntentBuilder(getString(R.string.invitation_title))
.build();
startActivityForResult(intent, Constants.REQUEST_CODE_INVITE);
但是,当我单击执行此代码的按钮时,会弹出一个对话框,说'Unfortunately, Google Play Services has stopped'.
我已尝试再次禁用、卸载和安装 google play 服务,甚至重新启动手机,但没有用。
android studio日志中没有显示异常,所以我无法找出问题所在。
请帮忙。