onActivityResult被回调多次
用QQ登录时,FlutterQqPlugin中的onActivityResult方法被回调多次,进而导致IUiListener的onComplete被多次调动,引发java.lang.IllegalStateException: Reply already submitted异常
在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
请问有谁遇到过这样的问题吗
我也遇到这样的问题了,你怎么解决的