Request Failed on production apk

China☆狼群 提交于 2019-12-13 02:59:33

问题


I'm always getting this error when try to request for maskedWallet in production apk.

Things that I've already check:

  • I've already check the public key and it was correct.
  • Merchant is enabled in google play console and it was fine.
  • It was working well on test environment.
  • Wallet api was also enabled in my Manifest.
  • Also production apk env was set to WalletConstants.ENVIRONMENT_PRODUCTION

Anything else I'm missing that might caused this error?


回答1:


Make sure You have added the metadata Tag..

<meta-data android:name="com.google.android.gms.wallet.api.enabled" android:value="true" />

In the android Manifest....

If this doesn't helps you...please consider posting the Logcat Logs...




回答2:


You get this message with no error code because you haven't get approval from Google.

  1. Sign up the form - https://services.google.com/fb/forms/googlepayAPIenable/

  2. Then, Google will contact you

    A. They need your apk pointed to ENVIRONMENT_TEST.

    B: If your app is ok after their review, you need to submit more information related to your app.

    C: They need you apk pointed to ENVIRONMENT_PRODUCTION and you need to sign your app.

So, just follow their instructions.

Some References:

Deploying your application from testing

https://developers.google.com/pay/api/test-and-deploy

Signing

https://developer.android.com/studio/publish/app-signing.html



来源:https://stackoverflow.com/questions/47587984/request-failed-on-production-apk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!