[英]Unity Google Play License Verification (LVL)
I am trying to implement License verification into my android unity game.我正在尝试在我的 android 统一游戏中实施许可证验证。 I found this plugin , but the problem is that I am doing this for the first time and don't really know what to do.
我找到了这个插件,但问题是我第一次这样做并且不知道该怎么做。
I imported that into my project and attached CheckLVLButton.cs to a gameObject in my scene and inserted my public LVL key to the script.我将它导入到我的项目中,并将CheckLVLButton.cs附加到我场景中的一个游戏对象,并将我的公共 LVL 密钥插入到脚本中。
I have even recompiled the Java source and attached the new classes_jar.txt to the CheckLVLButton script, but I am still getting this error.我什至重新编译了 Java 源并将新的 classes_jar.txt 附加到 CheckLVLButton 脚本,但我仍然收到此错误。 This is the output of the log
这是日志的output
And when I try to debug it on Android using Visual Studio, there is an error that ServiceBinder is null.当我尝试使用 Visual Studio 在 Android 上调试它时,出现 ServiceBinder 为 null 的错误。
But when I try to run the game and push that button it just says Invalid LVL key.但是当我尝试运行游戏并按下该按钮时,它只会显示无效的 LVL 密钥。 Check the source... But I have it right.
检查来源......但我说得对。
Do I have to do something else?我必须做其他事情吗? Do I have to install it from google play beta test instead of building apk with unity and installing?
我是否必须从 google play beta 测试中安装它,而不是通过统一构建 apk 并安装?
You have to put it up in a test track, install it from the Playstore, and then test it.你必须把它放在一个测试轨道上,从 Playstore 安装它,然后测试它。 (it's a pain, and I am still not there yet.) The reason that it is saying that it is invalid is because it's not installed from the playstore.
(这很痛苦,我还没有。)它说它无效的原因是因为它不是从playstore安装的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.