IllegalStateException in IAB V3

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 20:27:17

For a reason in a previous try the method flagEndAsync hasnot been called, make sure that in IabHelper in all cases (success or failure) the method flagEndAsync is called.

This can happen because IabHelper.handleActivityResult(requestCode, resultCode, data); is not called in the onActivityResult() method of your activity. You may want to verify that it is being called.

Instead of updating all code. It's easier to make the flagEndSync method in your IabHelper public.

Then each time you make call to your IabHelper, call Mhelper.flagEndAsync() first. Then you know for sure you start with a clean Asynctask.

No crashes for me anymore.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!