如何修复像genymoution中的按钮

时间:2015-09-24 19:40:15

标签: android facebook android-emulator facebook-like genymotion

我使用此代码编写Android应用程序

Java代码:

LikeView likeView = (LikeView) findViewById(R.id.likeView);
likeView.setLikeViewStyle(LikeView.Style.STANDARD);
likeView.setAuxiliaryViewPosition(LikeView.AuxiliaryViewPosition.INLINE);

likeView.setObjectIdAndType(
        "https://www.facebook.com/coca-cola",
        LikeView.ObjectType.OPEN_GRAPH);

布局XML:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
    android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin"
    tools:context="example.tmp.ShareActivity">

    <com.facebook.share.widget.LikeView
        android:id="@+id/likeView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>
</RelativeLayout>

但是当我点击LIKE按钮快速打开并关闭facebook UI并收到此错误

09-24 15:34:37.191 3865-3865/example.tmp I/chromium: [INFO:CONSOLE(1)] "Uncaught Error: Module CircularBuffer has not been defined", source: https://m.facebook.com/connect/dialog/MPlatformLikeJSDialog?app_id=740226516083368&method_args=%7B%22object_id%22%3A%22https%3A%5C%2F%5C%2Fwww.facebook.com%5C%2Fcoca-cola%22%2C%22object_type%22%3A%22open_graph%22%7D&bridge_args=%7B%22action_id%22%3A%2273277a64-873b-4d31-8c14-0d9d064b4271%22%7D&display=touch&android_key_hash=tt4i17WFZzKyTAyD2L8taqrThUk%0A (1)
09-24 15:34:37.892 3865-3936/example.tmp E/eglCodecCommon: **** ERROR unknown type 0x73000f (glSizeof,80)
09-24 15:34:38.084 3865-3936/example.tmp E/eglCodecCommon: **** ERROR unknown type 0x73000f (glSizeof,80)
09-24 15:34:38.441 3865-3936/example.tmp E/eglCodecCommon: **** ERROR unknown type 0x73000f (glSizeof,80)
09-24 15:34:38.789 3865-3936/example.tmp E/eglCodecCommon: **** ERROR unknown type 0x73000f (glSizeof,80)
09-24 15:34:38.982 3865-3936/example.tmp E/eglCodecCommon: **** ERROR unknown type 0x73000f (glSizeof,80)
09-24 15:34:39.304 3865-3936/example.tmp E/eglCodecCommon: **** ERROR unknown type 0x73000f (glSizeof,80)
09-24 15:34:39.505 3865-3936/example.tmp E/eglCodecCommon: **** ERROR unknown type 0x73000f (glSizeof,80)
09-24 15:34:39.732 3865-3936/example.tmp E/eglCodecCommon: **** ERROR unknown type 0x73000f (glSizeof,80)
09-24 15:34:39.892 3865-3936/example.tmp E/eglCodecCommon: **** ERROR unknown type 0x73000f (glSizeof,80)
09-24 15:34:40.061 3865-3936/example.tmp E/eglCodecCommon: **** ERROR unknown type 0x73000f (glSizeof,80)
09-24 15:34:40.252 3865-3936/example.tmp E/eglCodecCommon: **** ERROR unknown type 0x73000f (glSizeof,80)
09-24 15:34:40.473 3865-3936/example.tmp E/eglCodecCommon: **** ERROR unknown type 0x73000f (glSizeof,80)
09-24 15:34:40.755 3865-3936/example.tmp E/eglCodecCommon: **** ERROR unknown type 0x73000f (glSizeof,80)
09-24 15:34:40.777 3865-3865/example.tmp I/Choreographer: Skipped 74 frames!  The application may be doing too much work on its main thread.

也许有人知道 - 我怎么能在genymoution模拟器中修复这个bug?

1 个答案:

答案 0 :(得分:0)

今天我遇到了同样的问题。问题是错误的用户。我试图用没有这个应用程序许可的用户测试LikeView。当我与另一个用户测试时,一切都像魅力一样。因此,请尝试为此用户添加角色权限或在其他帐户上进行测试