【发布时间】:2012-04-30 00:46:56
【问题描述】:
使用com.android.vending.licensing,您可以检查您的应用是否获得许可。有一个回调,applicationError(),它会告诉您是否有任何问题。今天遇到错误ERROR_NOT_MARKET_MANAGED,不知道该如何处理!
这就是我所做的:
- 在 Google Play 上,我将我的电子邮件地址添加为测试帐户。
- 在 Google Play 上,我使用
versionCode="10"保存了我的应用(未发布)。 - 在我的机器上,我改为
versionCode="11"。 - 许可证检查现在失败,错误代码为
ERROR_NOT_MARKET_MANAGED。
问题是;我应该处理这个错误还是这是一个不切实际的场景?
【问题讨论】:
-
Google 建议通过调用 dontAllow() 方法来管理错误:
Additionally, you should implement the applicationError() method, which the LVL calls to let your application handle errors that are not retryable. You can implement the method in any way needed. In most cases, the method should log the error code and call dontAllow().
标签: android google-play android-lvl