发送&取消按钮在Unity Facebook AppRequest对话框上不起作用

时间:2016-08-07 15:03:10

标签: android unity3d facebook-unity-sdk

我使用的是Unity 5.4.0和Facebook SDK 7.8.0 在Galaxy Note 2(Android 4.3)上的Facebook AppRequest对话框上触摸发送或取消按钮时出现问题 实际上我的其他设备没有问题,关闭按钮也可以。

当我触摸发送或取消按钮时,会出现例如

的异常
08-19 04:06:17.731: W/ActivityManager(2429): Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
08-19 04:06:17.741: E/DatabaseUtils(2429): Writing exception to parcel
08-19 04:06:17.741: E/DatabaseUtils(2429): java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
08-19 04:06:17.741: E/DatabaseUtils(2429):  at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:13192)
08-19 04:06:17.741: E/DatabaseUtils(2429):  at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:2044)
08-19 04:06:17.741: E/DatabaseUtils(2429):  at com.android.providers.settings.SettingsProvider.callFromPackage(SettingsProvider.java:615)
08-19 04:06:17.741: E/DatabaseUtils(2429):  at android.content.ContentProvider$Transport.call(ContentProvider.java:279)
08-19 04:06:17.741: E/DatabaseUtils(2429):  at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:273)
08-19 04:06:17.741: E/DatabaseUtils(2429):  at android.os.Binder.execTransact(Binder.java:388)
08-19 04:06:17.741: E/DatabaseUtils(2429):  at dalvik.system.NativeStart.run(Native Method)

并且这些按钮似乎没什么感动。 它不是一直发生,而是在某些情况下发生。

有谁知道为什么会这样?

1 个答案:

答案 0 :(得分:0)

根据例外情况,您需要将权限android.permission.INTERACT_ACROSS_USERS_FULL添加到您的Android清单文件中。

您可以在Assets/Plugins/Android目录中找到清单文件。

你试过这个吗?