找不到lvl License.apk
当我尝试运行将 lvl 作为库安装的应用程序时,我收到此错误消息。
我按照developer.android.com网站上概述的步骤安装lvl库:
我将“market_licensing”文件夹复制到我的项目文件夹中,
我创建了一个名为“License”的新库,其中包含“new”,“使用Motodev的android项目” studio”、“从现有源创建项目”、“SDK 目标”API-7。
我将主项目“项目”、“属性”、“android”、“添加库”设置为“许可证”,并选中“IsLibrary”。
尽管如此,lvl 库似乎并没有与主应用程序一起构建,这给了我这个错误。
I am getting this error message when I try to run my app that has the lvl installed as a library.
I followed the steps outlined on the developer.android.com site for installing the lvl library:
I copied the "market_licensing" folder into my project folder,
I created a new library called "License" with "new", "android project using Motodev studio", "create project from existing source", "SDK Target" API-7.
I set the main project "project","properties", "android", "add library" to "License", and checked "IsLibrary".
Still, the lvl library doesn't seem to build with the main application, giving me this error.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
经过8个小时的尝试,我决定放弃使用库概念合并lvl。 Eclipse/android 环境仍然存在太多问题,无法使用库。
developer.android.com 网站提供了一种替代(而且更好)的方法来包含 lvl 代码:
“作为将 LVL 添加为库项目的替代方法,您可以将库源直接复制到您的应用程序中。为此,将 LVL 的 library/src/com 目录复制(或导入)到应用程序的 src/ 目录中。”
我这样做了,而且有效!远离图书馆。
I decided to give up on using the library concept to incorporate lvl after trying for 8 hours. The Eclipse/android environment is still too buggy to work with libraries.
The developer.android.com site provided an alternate (and much better) way to include the lvl code:
"As an alternative to adding the LVL as a library project, you can copy the library sources directly into your application. To do so, copy (or import) the LVL's library/src/com directory into your application's src/ directory."
I did this, and it works! Stay away from the use of libraries.
Eclipse IDE 在这个库路径上有问题。但我设法摆脱它。
以文档中描述的相同方式添加库
http://developer.android.com/google/play/licensing/setting-up.html
3.删除库从您的构建路径进行项目。此 library.apk 未找到错误只是因为您可能在删除错误并添加库时单击了修复预计的“添加到构建路径”。
Eclipse IDE is buggy with this library paths.But I managed to get rid of it
2.Add Library in the way described same in documentation
http://developer.android.com/google/play/licensing/setting-up.html
3.Remove Library Project from your Build Path. This library.apk not found error is just because you may have clicked on fix projected 'Add to Build Path' while removing error and adding library.