找不到lvl License.apk

发布于 2024-10-29 16:31:30 字数 334 浏览 4 评论 0原文

当我尝试运行将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

东北女汉子 2024-11-05 16:31:30

经过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.

清浅ˋ旧时光 2024-11-05 16:31:30

Eclipse IDE 在这个库路径上有问题。但我设法摆脱它。

  1. 首先将 LVL 库复制到项目所在目录的文件夹中。这将使相对路径变得简单,例如“../library”,而不是长路径,这会导致错误,然后尝试在 eclipse 2 中导入。

以文档中描述的相同方式添加库

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

  1. First copy the LVL Library to the folder just at the same directory your project is located. This will make relative path simple e.g. '../library' instead of long path which make it buggy and Then try Import in eclipse

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文