试图改变
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的工作示例吗?
答案 0 :(得分:0)
解决。对于项目和模拟器avd,必须使用“Google API”而不是“Android”。