bp。某些手机购买中断

时间:2019-01-04 05:07:49

标签: java android sdk

我有一个运行良好的android应用程序,并且运行良好,并且已经测试了In App Purchases V3,在外接三星手机中可以。它已经准备好发布了,突然之间在此行出现了以下错误:

bp.purchase(MainActivity.this, "android.test.purchased");

错误如下:

01-03 21:43:07.492 805-1531/? E/DatabaseUtils: Writing exception to parcel
    java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
        at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:15168)
        at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:2492)
        at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:688)
        at android.content.ContentProvider$Transport.call(ContentProvider.java:325)
        at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:275)
        at android.os.Binder.execTransact(Binder.java:404)
        at dalvik.system.NativeStart.run(Native Method)
01-03 21:43:07.492 805-1531/? W/ActivityManager: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
01-03 21:43:07.552 4095-4326/? I/Finsky: [333] com.google.android.finsky.billing.iab.an.b(45): com.example.ashamsa.iaptest: Account from first account - [1-W58wCwpHIMWNDOrKtUcDzJ-_k]
01-03 21:43:07.572 1330-1330/? W/ChimeraUtils: Non Chimera context
01-03 21:43:07.592 1330-1347/? E/Auth: [GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION. Account: <ELLIDED:-1755391382>, App: com.android.vending, Service: androidmarket
    mrn: Long live credential not available.
        at gzz.c(:com.google.android.gms@14799002@14.7.99 (000304-223214910):18)
        at gzz.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):11)
        at gzz.b(:com.google.android.gms@14799002@14.7.99 (000304-223214910))
        at gyk.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):22)
        at inl.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):7)
        at inl.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):153)
        at iml.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):2)
        at imj.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):15)
        at imj.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):6)
        at gux.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):33)
        at gux.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):81)
        at gux.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):254)
        at dsq.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):5)
        at utz.a(:com.google.android.gms@14799002@14.7.99 (000304-223214910):5)
        at csb.onTransact(:com.google.android.gms@14799002@14.7.99 (000304-223214910):4)
        at android.os.Binder.transact(Binder.java:361)
        at dui.onTransact(:com.google.android.gms@14799002@14.7.99 (000304-223214910):3)
        at android.os.Binder.transact(Binder.java:361)
        at com.google.android.gms.internal.o$a$a.a(Unknown Source)
        at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
        at com.google.android.gsf.loginservice.GoogleLoginService$AccountAuthenticatorImpl.getAuthToken(GoogleLoginService.java:302)
        at android.accounts.AbstractAccountAuthenticator$Transport.getAuthToken(AbstractAccountAuthenticator.java:196)
        at android.accounts.IAccountAuthenticator$Stub.onTransact(IAccountAuthenticator.java:113)
        at android.os.Binder.execTransact(Binder.java:404)
        at dalvik.system.NativeStart.run(Native Method)

我花了两个多小时才猜到手机可能有问题,所以我更换了外接电话,它的工作原理与以前一样,没有任何问题。 因此,我感到困惑的是,导致上述错误的测试手机中可以更改的内容。 我构建了一个非常简单的应用程序以测试购买的应用程序,然后这个基本应用程序又一次可以正常工作,而另一方面又崩溃了。我应该提一下,在这突然变坏之前,这两款手机的工作情况都非常好,

我很高兴有人能对此有所启示, 谢谢,

1 个答案:

答案 0 :(得分:0)

这就是发生的事情,尽管我不确定应用程序应该如何处理。

在我的电话>设置>帐户> google中,我有3个注册帐户,其中两个不同步。我删除了它们,它现在开始工作。