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

前端 未结 19 784
星月不相逢
星月不相逢 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 10:52

    if you code in fragment then you this code in IabHelper.java

    void flagStartAsync(String operation) {
        if (mAsyncInProgress) {
            flagEndAsync();
        }
        if (mAsyncInProgress) throw new IllegalStateException("Can't start async operation (" +
                operation + ") because another async operation(" + mAsyncOperation + ") is in progress.");
        mAsyncOperation = operation;
        mAsyncInProgress = true;
        logDebug("Starting async operation: " + operation);
    }
    

提交回复
热议问题