0
- 我复制* {android-sdk} \ extras \ google \ play_licensing \ sample *,加入* {android-sdk} \ extras \ google \ play_licensing \ library \ src *复制到src复制项目的目录。
- 已修改BASE64_PUBLIC_KEY,将其设置为我的一个密钥。
- 在模拟器中添加Google帐户,登录。它是BASE64_PUBLIC_KEY对应的帐户。
- 许可证测试响应被设定为许可
尝试变更Android LVL:'无法绑定到服务'再次(getApplicationContext()没有帮助)
new ServerManagedPolicy(this, ...)
到
new ServerManagedPolicy(this.getApplicationContext(), ...)
同样在
LicenseChecker.checkAccess()
试图改变mContext.bindService()
到
mContext.getApplicationContext().bindService()
.bindService()
仍然返回false和bindService()调用logcat的过程中仍然报告警告:
Unable to start service Intent { act=com.android.vending.licensing.ILicensingService }: not found
有人可以参考我请LVL的工作的例子吗?