简体   繁体   English

如何运行android LVL库的示例项目

[英]how to run sample project of android LVL library

I am trying to run LVL sample project which comes with LVL library downloaded from sdk manager. 我正在尝试运行从sdk管理器下载的LVL库附带的LVL示例项目。 steps I am following to run the sample project 我要运行示例项目的步骤

1-download and install Google Play Licensing library from android SDK manager. 1-从android SDK管理器下载并安装Google Play许可库。
2-copy sample folder from sdk\\extras\\google\\play_licensing\\ to my desktop. 将示例文件夹从sdk \\ extras \\ google \\ play_licensing \\复制到我的桌面。
3-copy google folder from sdk\\extras\\google\\play_licensing\\library\\src\\com\\ to desktop\\sample\\src\\com 将sdk \\ extras \\ google \\ play_licensing \\ library \\ src \\ com \\中的google文件夹复制到Desktop \\ sample \\ src \\ com中的3-文件夹
4-open eclipse and go to (file->new->project->android project from existing code) and select sample folder on desktop and click finish. 4-打开eclipse并转到(文件->新建->项目->来自现有代码的android项目),然后在桌面上选择示例文件夹,然后单击完成。
5-open Google Play developer console website click on (add new application) button under all applications tab, input title as (License Test). 5打开Goog​​le Play开发者控制台网站,单击所有应用程序标签下的(添加新应用程序)按钮,将标题输入为(许可测试)。
6-Go to (license test) application setting under all applications tab. 6-转到所有应用程序选项卡下的(许可证测试)应用程序设置。
7-Go to Services and APIs tab and copy Base64-encoded RSA public key. 7-转到“服务和API”选项卡,然后复制Base64编码的RSA公钥。
8-open MainActivity.java file of sample project in eclipse and paste the key on line number 59 在Eclipse中将示例项目的8打开MainActivity.java文件粘贴到第59行上
private static final String BASE64_PUBLIC_KEY = "REPLACE THIS WITH YOUR PUBLIC KEY"; 9-run application on android device. 在Android设备上运行9个应用程序。

when the application starts on android device, it shows [checking license...] then it shows [application error: 3]. 当应用程序在android设备上启动时,显示[正在检查许可证...],然后显示[应用程序错误:3]。
I have a registered publisher account and I have also singed in to my android device with the same account.Please tell me what is missing, I have searched and it seems like application error 3 means the app is not market managed. 我有一个注册的发布者帐户,我也使用相同的帐户插入了我的android设备。请告诉我丢失了什么,我已经搜索过,似乎应用程序错误3表示该应用程序不是市场托管的。 what should I do ? 我该怎么办 ?

Is your APK uploaded yet to the Developer Console? 您的APK是否已上传到开发者控制台? You do not need to publish it but should have uploaded an APK with the app's package name. 您无需发布它,但应上传带有应用程序包名称的APK。 That error is labeled "ERROR_NOT_MARKET_MANAGED" in the default LVL implementation (which you should customize for best results). 该错误在默认的LVL实现中标记为“ ERROR_NOT_MARKET_MANAGED”(您应该对其进行自定义以获得最佳结果)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM