检索帐户java.lang.IllegalStateException时出错:没有当前的点击付款帐户

时间:2018-10-01 05:07:12

标签: java android

我一直在尝试运行我的代码,但出现此错误。该应用程序只是崩溃,我使用什么虚拟设备都没有关系。我的应用程序至今没有任何形式的付费服务。话虽如此,该错误什至指的是什么?如何解决?

Logcat:

09-30 23:51:25.945 2632-11033/com.google.android.gms.persistent E/SeTransactionSyncTask: Error retrieving account
    java.lang.IllegalStateException: No current tap-and-pay account
        at anbe.b(:com.google.android.gms@12874026@12.8.74 (040700-204998136):3)
        at anbe.a(:com.google.android.gms@12874026@12.8.74 (040700-204998136):1)
        at anvc.a(:com.google.android.gms@12874026@12.8.74 (040700-204998136):28)
        at com.google.android.gms.tapandpay.gcmtask.TapAndPayGcmTaskChimeraService.b(:com.google.android.gms@12874026@12.8.74 (040700-204998136):1)
        at com.google.android.gms.tapandpay.gcmtask.TapAndPayGcmTaskChimeraService.a(:com.google.android.gms@12874026@12.8.74 (040700-204998136):1)
        at com.google.android.gms.tapandpay.phenotype.PhenotypeCommitIntentOperation.onHandleIntent(:com.google.android.gms@12874026@12.8.74 (040700-204998136):47)
        at com.google.android.chimera.IntentOperation.onHandleIntent(:com.google.android.gms@12874026@12.8.74 (040700-204998136):2)
        at dfm.a(:com.google.android.gms@12874026@12.8.74 (040700-204998136):8)
        at npz.a(:com.google.android.gms@12874026@12.8.74 (040700-204998136):9)
        at dfr.run(:com.google.android.gms@12874026@12.8.74 (040700-204998136):10)
        at dfo.run(:com.google.android.gms@12874026@12.8.74 (040700-204998136):9)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
        at java.lang.Thread.run(Thread.java:764)

这些是错误指出的Java线程行。指出了错误的具体线程。

ThreadPoolExecutor.java:1162

            try {
                task.run(); --------------------Line 1162
            } catch (RuntimeException x) {
                thrown = x; throw x;
            } catch (Error x) {
                thrown = x; throw x;
            } catch (Throwable x) {
                thrown = x; throw new Error(x);
            } finally {
                afterExecute(task, thrown);
            }

ThreadPoolExecutor.java:636

 /** Delegates main run loop to outer runWorker. */
    public void run() {
        runWorker(this);--------------------Line 636
    }

Thread.java.764

/**
     * If this thread was constructed using a separate
     * <code>Runnable</code> run object, then that
     * <code>Runnable</code> object's <code>run</code> method is called;
     * otherwise, this method does nothing and returns.
     * <p>
     * Subclasses of <code>Thread</code> should override this method.
     *
     * @see     #start()
     * @see     #stop()
     * @see     #Thread(ThreadGroup, Runnable, String)
     */
    @Override
    public void run() {
        if (target != null) {
            target.run(); --------------------Line 764
        }
    }

当我更改以下适配器代码以解决低于我的先前错误时,发生了错误。如果我将其还原,则轻按一下付款错误就会消失。

  

RecyclerViewAdapter不能应用于给定类型;需要:游标   找到:上下文,原因:实际参数和形式参数列表不同   长度

我将其更改为:

   if (mAdapter == null) {
        mAdapter = new HistoryRecyclerViewAdapter(getContext(), null);
    }

收件人:

   if (mAdapter == null) {
        mAdapter = new HistoryRecyclerViewAdapter(null);
    }

0 个答案:

没有答案