Android in-app billing: Can't start async operation because another async operation (is in progress)

前端 未结 19 778
星月不相逢
星月不相逢 2020-12-07 10:34

I am using the IabHelper utility classes, as recommended by Google\'s tutorial, and I\'m being hit hard by this error. Apparently IabHelper can not

19条回答
  •  清歌不尽
    2020-12-07 11:03

    Or, you can get the latest IabHelper.java file here: https://code.google.com/p/marketbilling/source/browse/

    The March 15th version fixed this for me. (Note other files with no changes were committed on the 15th)

    I still had to fix one crash that happened during testing caused by a null intent extras when "android.test.canceled" was the sent SKU. I changed:

    int getResponseCodeFromIntent(Intent i) {
        Object o = i.getExtras().get(RESPONSE_CODE);
    

    to:

    int getResponseCodeFromIntent(Intent i) {
        Object o = i.getExtras() != null ? i.getExtras().get(RESPONSE_CODE) : null;
    

提交回复
热议问题