我想在我的应用程序中集成Facebook和Nextpeer。我在我的活动中有facebook登录按钮,它工作正常。我还有nextpeer多人活动,如果我没有登录到facebook,也可以正常工作,但当我登录到facebook并尝试启动多人游戏时,我得到错误:
java.lang.ClassCastException: com.facebook.AccessTokenSource
cannot be cast to com.nextpeer.android.facebook.AccessTokenSource 因此,nextpeer似乎正在尝试使用facebook SDK中的类登录facebook。
有人能帮我吗?请:)
发布于 2014-03-06 21:57:35
仔细检查您的AndroidManifest.xml文件。您是否设置了正确的登录活动?
它应该指向“com.nextpeer.android.facebook.LoginActivity”.
<activity android:name="com.nextpeer.android.facebook.LoginActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:label="@string/np__application_name" />发布于 2014-03-11 16:54:13
所以我写信给Nextpeer的家伙,他把它修好了,现在它工作得很好。
https://stackoverflow.com/questions/22221720
复制相似问题