Hi im having this problem, when i try to send facebook appinvites from my android app it just hangs on this white dialog forever: . I've tried in emulators and real devices and it just keeps doing the same. I followed this guide:
https://developers.facebook.com/docs/app-invites/android https://developers.facebook.com/docs/app-invites/android . Its wierd because at start i wasn't having this problem, it was opening fine and could see facebook friends and send the invitations but suddenly it just stopped working. I've been searching for a solution and cant find anything.
Some info:
- 我使用 facebook-android-sdk:4.20.0
-
我对sdk的调用:
`@覆盖
公共无效 onCreate(捆绑保存实例状态){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_fbfriends);
FacebookSdk.sdkInitialize(this);
callbackManager = CallbackManager.Factory.create();
if (AppInviteDialog.canShow()) {
/* handle the result */
AppInviteContent content = new AppInviteContent.Builder()
.setApplinkUrl("facebook generated link to myapp")
.build();
AppInviteDialog.show(this, content);
}
}`
- 当我调用 AppInviteDialog.show(this, content) 时的 logcat:
I/cr_LibraryLoader:加载本机库的时间:6 毫秒(时间戳 8392-8398)
I/cr_LibraryLoader:预期本机库版本号“52.0.2743.100”,实际本机库版本号“52.0.2743.100”
I/cr_LibraryLoader:预期本机库版本号“52.0.2743.100”,实际本机库版本号“52.0.2743.100”
I/chromium: [INFO:library_loader_hooks.cc(143)] Chromium 日志记录已启用:级别 = 0,默认详细程度 = 0
I/cr_BrowserStartup:初始化chromium进程,singleProcess=true
W/cr_media:需要蓝牙权限
I/cr_DRP:由于异常而没有 DRP 密钥:java.lang.ClassNotFoundException:com.android.webview.chromium.Drp
W/cr_AwContents:onDetachedFromWindow 在已分离时调用。忽略
I/cr_Ime:ImeThread 未启用。
我/编舞:跳了33帧!应用程序可能在其主线程上做了太多工作。
E/libEGL: validate_display:99 错误 3008 (EGL_BAD_DISPLAY)
I/VideoCapability:视频/mp4v-es 不支持配置文件 4
[ 03-11 08:03:08.849 2642: 3328 D/ ] HostConnection::get() 建立新主机连接 0x6fff73f04ac0,tid 3328
D/FA:连接到远程服务
I/art:进行完整的代码缓存收集,代码=123KB,数据=109KB
I/art:启动阻塞 GC JitCodeCache
I/art:代码缓存收集后,代码=113KB,数据=74KB
W/cr_BindingManager:无法调用确定的可见性() - 从未见过 pid 的连接:2642
W/art:尝试删除非 JNI 本地引用,转储线程
I/art:进行部分代码缓存收集,代码=121KB,数据=88KB
I/art:代码缓存收集后,代码=121KB,数据=88KB
I/art:将代码缓存容量增加至 512KB
W/art:尝试删除非 JNI 本地引用,转储线程
W/art:尝试删除非 JNI 本地引用,转储线程
W/art:尝试删除非 JNI 本地引用,转储线程
W/art:尝试删除非 JNI 本地引用,转储线程
(持续到:)
I/chromium:[INFO:CONSOLE(155)]“未捕获的错误:发生了缩小的异常;使用非缩小的开发环境来获取完整的错误消息和其他有用的警告。”,来源: (155)
W/art:尝试删除非 JNI 本地引用,转储线程
W/art:尝试删除非 JNI 本地引用,转储线程
W/art:尝试删除非 JNI 本地引用,转储线程
I/art:编译器分配了 6MB 来编译 void android.view.ViewRootImpl.performTraversals()
W/art:尝试删除非 JNI 本地引用,转储线程
W/art:尝试删除非 JNI 本地引用,转储线程
W/art:尝试删除非 JNI 本地引用,转储线程
W/art:尝试删除非 JNI 本地引用,转储线程
W/art:挂起所有线程花费了:16.507ms
I/art:后台部分并发标记清除 GC 释放了 19(592B) AllocSpace 对象,3(18MB) LOS 对象,17% 空闲,19MB/23MB,暂停 8.410ms 总计 43.175ms
W/art:尝试删除非 JNI 本地引用,转储线程
W/art:尝试删除非 JNI 本地引用,转储线程
W/art:尝试删除非 JNI 本地引用,转储线程
I/art:后台部分并发标记清除GC释放了23(664B)个AllocSpace对象,2(12MB)个LOS对象,13%空闲,25MB/29MB,暂停7.096ms总共37.376ms
W/art:尝试删除非 JNI 本地引用,转储线程
W/art:尝试删除非 JNI 本地引用,转储线程
W/art:尝试删除非 JNI 本地引用,转储线程
然后就这样永远持续下去。
- 我的 Facebook 应用程序设置目前已上线并可供公众使用。
如果我可以提供任何其他信息,请告诉我,谢谢。
我刚刚检查了我所做的错误报告,显然这是一个 Facebook 错误,他们已经在处理它了。这是报告链接:https://developers.facebook.com/bugs/721787828000962/ https://developers.facebook.com/bugs/721787828000962/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)