Skip to content
New issue

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

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

Already on GitHub? # to your account

onActivityResult被回调多次 #22

Open
RommelLiang opened this issue Mar 31, 2020 · 2 comments
Open

onActivityResult被回调多次 #22

RommelLiang opened this issue Mar 31, 2020 · 2 comments

Comments

@RommelLiang
Copy link

用QQ登录时,FlutterQqPlugin中的onActivityResult方法被回调多次,进而导致IUiListener的onComplete被多次调动,引发java.lang.IllegalStateException: Reply already submitted异常

@RommelLiang
Copy link
Author

RommelLiang commented Apr 2, 2020

在demo中,跳转到QQ登录页面时的堆栈信息为:
intent={act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.droi.sdk.socialdemo/com.github.marekchen.flutterqqexample.MainActivity} realActivity=com.droi.sdk.socialdemo/com.github.marekchen.flutterqqexample.MainActivity Activities=[ActivityRecord{c8b1db4 u0 com.droi.sdk.socialdemo/com.github.marekchen.flutterqqexample.MainActivity t20443}, ActivityRecord{3a25246 u0 com.droi.sdk.socialdemo/com.tencent.connect.common.AssistActivity t20443}, ActivityRecord{ca14cd2 u0 com.tencent.mobileqq/com.tencent.open.agent.AgentActivity t20443}, ActivityRecord{bc3e7eb u0 com.tencent.mobileqq/com.tencent.open.agent.PublicFragmentActivityForOpenSDK t20443}] resultTo=ActivityRecord{c8b1db4 u0 com.droi.sdk.socialdemo/com.github.marekchen.flutterqqexample.MainActivity t20443} resultWho=null resultCode=11101 * Hist #0: ActivityRecord{c8b1db4 u0 com.droi.sdk.socialdemo/com.github.marekchen.flutterqqexample.MainActivity t20443} Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.droi.sdk.socialdemo/com.github.marekchen.flutterqqexample.MainActivity bnds=[540,939][793,1224] } realActivity=com.droi.sdk.socialdemo/com.github.marekchen.flutterqqexample.MainActivity Run #0: ActivityRecord{c8b1db4 u0 com.droi.sdk.socialdemo/com.github.marekchen.flutterqqexample.MainActivity t20443}
但是在我的项目中是这样的:
Run #1: ActivityRecord{e811d8f u0 com.xxx.xxx/com.tencent.connect.common.AssistActivity t20441} Run #0: ActivityRecord{4ecba27 u0 com.xxx.xxx/.MainActivity t20441}
多出来了com.tencent.connect.common.AssistActivity
请问有谁遇到过这样的问题吗

@zhangji92
Copy link

我也遇到这样的问题了,你怎么解决的

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

No branches or pull requests

2 participants