LVL图书馆谷歌Play授权响应code一直未获准用于测试帐户 [英] LVL Library Google Play licensing response code always NOT LICENSED for test accounts

查看:309
本文介绍了LVL图书馆谷歌Play授权响应code一直未获准用于测试帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了许可使用LVL图书馆我的Andr​​oid应用程序。授权可以正常使用而买它在谷歌播放普通用户(我是这么认为的 - 我没有对任何问题的反馈)。它还工作时,我主要是用一些测试帐号测试了第二个设备。

I've added licensing to my android application using LVL Library. Licensing works properly for normal users which buys it in Google Play (I think so - I don't have any feedback about problems). It worked also when I primarily tested it on second device with some test account.

目前我的问题,服务器始终与测试账号设备无论我设置执照考试答案,在开发者控制台返回NOT_LICENSED响应code(1)。当我与发布商帐户答题器测试是正确的(服务器返回什么我设置执照考试答案)。

Currently I have problem that server always return NOT_LICENSED response code (1) on devices with test account whatever I set in "license test answer" in developer console. When I test on device with publisher account answer is correct (server returns what I set in "license test answer").

我已经签署发布版本和调试版本,并总是相同的测试。我已上传到谷歌同样的发布版本播放(和使用相同的版本code调试版本,这里面上传)。
我已经与测试设备上配置单(主??)测试帐号进行测试。

I've tested on signed release build and on debug build and always the same. I've the same release build uploaded to Google Play (and use the same versionCode for debug version as this which was uploaded). I've tested with single (primary??) test account configured on test device.

有趣的事情 - 与我添加的出版商帐户(设置/账户和同步/添加账户)主要测试帐号的设备,并回答仍始终NOT_LICENSED即使有它的发布商帐户。可惜的是我无法从设备上删除测试帐户,因为我有我不想删除一些数据。

Interesting thing - to device with primary test account I've added publisher account (settings/accounts and synch/add account), and answer is still always NOT_LICENSED even if there is publisher account on it. Unfortunatelly I cannot delete test account from that device because I have some data which I don't want to delete.

我给APK其他测试人员和测试添加量占他们 - 他们有同样的问题 - 总是NOT_LICENSED响应

I gave apk to other testers and added test accounts for them - they have the same issue - always NOT_LICENSED response.

推荐答案

我有一个已经发布的应用了同样的问题:
如果算上你的安卓版本code 的清单,比目前公布的版本高,Play商店总是返回not_licensed。
所以,解决的办法是当你在测试以不计数的版本code。
该行为是奇怪,但这个解决方案为我工作。

i had the same issue for an app that was already published: If you count up your android:versionCode in the Manifest, higher than the currently published version, the play store will always return not_licensed. So the solution is to NOT count up the version code while you are testing. The behaviour is strange but this solution worked for me.

这篇关于LVL图书馆谷歌Play授权响应code一直未获准用于测试帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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