Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react native 0.33.0,android 版本,微博分享闪退(内容能分享出去,但是分享完APP就退出了) #8

Open
3449790992 opened this issue Sep 19, 2016 · 1 comment

Comments

@3449790992
Copy link

3449790992 commented Sep 19, 2016

ndroidRuntime: FATAL EXCEPTION: main
Process: com.zhuandw, PID: 4498
java.lang.AbstractMethodError: abstract method not implemented
at cn.reactnative.modules.qq.QQModule.onActivityResult(QQModule.java)
at com.facebook.react.bridge.ReactContext.onActivityResult(ReactContext.java:210)
at com.facebook.react.XReactInstanceManagerImpl.onActivityResult(XReactInstanceManagerImpl.java:612)
at com.facebook.react.ReactActivityDelegate.onActivityResult(ReactActivityDelegate.java:134)
at com.facebook.react.ReactActivity.onActivityResult(ReactActivity.java:77)
at android.app.Activity.dispatchActivityResult(Activity.java:5438)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3350)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3397)
at android.app.ActivityThread.access$1300(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5034)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:805)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:621)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
at dalvik.system.NativeStart.main(Native Method)
09-19 22:34:39.704 414-631/? E/ThermalEngine: Unable to read max frequency from online cpu.
09-19 22:34:39.704 414-631/? E/ThermalEngine: Failed to set desired CPU[2] frequency limit to 2265600
09-19 22:34:39.714 1441-1616/? E/InputDispatcher: channel '43a9afa8 com.zhuandw/com.zhuandw.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

@magicwing
Copy link

QQModule中重新定义如下函数就可以了
public void onActivityResult(int requestCode, int resultCode, Intent data) {
Tencent.onActivityResultData(requestCode, resultCode, data, this);
}
public void onActivityResult(Activity activity, int requestCode, int resultCode, Intent data) {
Tencent.onActivityResultData(requestCode, resultCode, data, this);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants