当我通过android.test.purchased购买商品时,Google Play服务停止工作 [英] Google play service stops working when I make a purchase with android.test.purchased

查看:215
本文介绍了当我通过android.test.purchased购买商品时,Google Play服务停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Bundle buyIntentBundle = inappService.getBuyIntent(3, this.getPackageName(), "android.test.purchased", "inapp", "myUserId");
int responseCode = buyIntentBundle.getInt("RESPONSE_CODE");
if (responseCode == 0) {
   PendingIntent pendingIntent = buyIntentBundle.getParcelable("BUY_INTENT");
   this.startIntentSenderForResult(pendingIntent.getIntentSender(), PURCHASE_REQUEST_CODE, new Intent(), 0, 0, 0);
}

似乎当我执行上述代码时,我的Google Play服务将停止运行(崩溃?)

It appears that right when i execute the code above, my google play service will stop running (crash?)

这曾经在几天前起作用.但是现在它已经停止了.

This used to work about couple days ago. But now it has stopped.

你们知道我能做什么吗?当我通过Beta测试用户对真实产品进行测试时,一切仍然有效.

Do you guys know what I can do? When I tested with a real product with beta testing users everything still works.

这是添加的堆栈跟踪.看起来它来自Google Play商店本身.

Here is the added stack trace. Looks like it comes from Google Play Store itself.

    07-21 14:28:51.172 18056-18224/? E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #4
                                                       Process: com.android.vending, PID: 18056
                                                       java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:318)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:762)
Caused by: java.lang.NullPointerException: Attempt to read from field 'long com.google.wireless.android.finsky.dfe.nano.an.b' on a null object reference
at com.google.android.finsky.billing.lightpurchase.s.a(SourceFile:5)
at com.google.android.finsky.billing.lightpurchase.h.doInBackground(SourceFile:27)
at android.os.AsyncTask$2.call(AsyncTask.java:304)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 
at java.lang.Thread.run(Thread.java:762) 

推荐答案

我联系了 Google开发者支持,他们说这是"Google Play商店错误"

I contacted with Google Developer Support and they said it's "Google Play Store bug"

Google回复:

我们已经知道此问题,我们的工程师目前正在对此进行调查.从这些信息中获取任何信息后,我将提供更多更新.

因此,无需为此崩溃做任何事情.只需等待Google Play商店应用中的错误修复.

So there is no need to do anything about this crash. Just wait for bug fixes on Google Play Store App.

EDIT(08.08.2017)

今天"android.test.purchased" 崩溃问题已解决. Google Play商店应用的版本为 8.0.73.R-all [0] [PR] 162689464 .

Today the "android.test.purchased" crash problem fixed. The Google Play Store App version is 8.0.73.R-all [0] [PR] 162689464 now.

这篇关于当我通过android.test.purchased购买商品时,Google Play服务停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆