无法获取Android Market的授权(LVL)工作可靠。几乎总是返回重试 [英] Cannot get Android Market Licensing (LVL) working reliably. Almost always returns RETRY

查看:206
本文介绍了无法获取Android Market的授权(LVL)工作可靠。几乎总是返回重试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让Android的许可在我的第一个安卓应用程序工作。

我按照网上指导和整合了拉特 code。使用 ServerManagedPolicy

无论什么许可证测试响应我在开发者控制台中设置的我几乎总是(9次满分10分)获得的 LicenseResponse.RETRY 。因为 DEFAULT_MAX_RETRIES =0这个总是被转换成 NOT_LICENSED

我已经试过:

  • 在转向无线开/关
  • 在运行我买了付费应用(他们所有的工作!)
  • 拔出USB
  • 在虚拟机上运行,​​我的真正的手机

我总是得到相同的结果。在那我有执照的响应几次一直没有任何附加的增加最大重试群众演员。我觉得这是问题的症结所在 - 我第一次尝试,许可我在默认设置不重试或有效期宽容。

我怎样才能得到可靠的这个工作?


编辑1


在日志中发现这一点。这是否意味着有连接到Android Market的应用程序有问题?

  08-18 21:12:16.071:信息/许可证(10852):checkLicense
08-18 21:12:17.271:信息/ LicenseChecker(10852):绑定到授权服务。
08-18 21:12:17.281:WARN / ActivityManager(80):无法启动服务意向{行为= licensing.ILicensingService}:未找到
08-18 21:12:17.281:ERROR / LicenseChecker(10852):无法绑定到服务。
08-18 21:12:17.301:信息/许可证(10852):dontAllow
 

解决方案

确认这是你的Andr​​oidManifest:

 <使用-权限的Andr​​oid:名称=com.android.vending.CHECK_LICENSE/>
 

这是需要运行检查许可code。

I am trying to get android licensing to work in my first Android application.

I have followed the online guides and have integrated the LVL Code using the ServerManagedPolicy.

Regardless of what license test response I set in the developer console I almost always (9 times out of 10) get a LicenseResponse.RETRY. Because DEFAULT_MAX_RETRIES = "0" this is always converted into NOT_LICENSED

I've tried:

  • turning WiFi On / Off
  • running paid apps I bought (they all work!)
  • unplugging the usb
  • running in a vm and my real phone

I always get the same result. On the few occasions that I've had a licensed response it has not had any of the extras attached to increase the max retries. I think this is the crux of the problem - the first time I try and license I have no retry or validity period toleration in the default settings.

How can I get this working reliably?


Edit 1


Found this in the logs. Does this imply there is a problem connecting to the android market app?

08-18 21:12:16.071: INFO/LICENSE(10852): checkLicense
08-18 21:12:17.271: INFO/LicenseChecker(10852): Binding to licensing service.
08-18 21:12:17.281: WARN/ActivityManager(80): Unable to start service Intent { act=licensing.ILicensingService }: not found
08-18 21:12:17.281: ERROR/LicenseChecker(10852): Could not bind to service.
08-18 21:12:17.301: INFO/LICENSE(10852): dontAllow

解决方案

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.

这篇关于无法获取Android Market的授权(LVL)工作可靠。几乎总是返回重试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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