Cannot get Android Market Licensing (LVL) working reliably. Almost always returns RETRY

[亡魂溺海] 提交于 2019-11-28 14:18:10

There are two things that might help you:

  1. Assuming you are using the Developer Console to simulate a response, it sometimes takes more than a few minutes to refresh the response you got from previous tries. So if you simulated a FAILED response, you probably need to wait for a while before you can receive a SUCCESS response. Sometimes even rebooting your device will not help so you just have to wait.
  2. The LVL mechanism has some issues and even on users' devices you might get a FAILED response when there is no internet connection for a while on the device, or some other network error. What I recommend is to have several retries on top of the LVL built-in retries as I found it can't be trusted and prone to errors. It would probably reduce the number of false-negative reports you'll get from your users...

Make sure that this is in your AndroidManifest:

<uses-permission android:name="com.android.vending.CHECK_LICENSE" />

That is required to run the check license code.

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