包括罐与日食的apk [英] Include jar into apk with eclipse
本文介绍了包括罐与日食的apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想包括我的apk文件的JAR文件。
我试过如下:
-
- 复制jar放到
LIB
目录在我的项目 - 添加罐子路径
- 启用出口的jar
- 复制jar放到
-
- 只需将jar添加到我的项目路径(位置其他地方)
- 启用出口的jar
但APK不包括罐子。当我尝试lanch应用程序的控制台告诉我:
安装错误:INSTALL_FAILED_MISSING_SHARED_LIBRARY
请检查logcat的输出获取更多信息。
启动取消!
我使用
Eclipse IDE的Java开发人员
版本:靛蓝服务发布1
建立ID:20110916-0149 块引用>和Android的开发工具包
版本:16.0.1.v201112150204-238534 块引用>编辑:
这个问题得到解决。如果我没有宣布libary需要在它的工作清单。
(奇怪的行为)解决方案请确保您的
.JAR
与的JavaSE-1.6,而不是1.7创建
I am trying to include a jar file in my apk file.
I tried the following:
- copy the jar into
lib
directory in my project- add jar to path
- enable the jar for export
- simply add the jar to my project path (location anywhere else)
- enable jar for export
But the apk does not include the jar. When I try to lanch the application the console tells me:
Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY Please check logcat output for more details. Launch canceled!
I'm using
Eclipse IDE for Java Developers Version: Indigo Service Release 1 Build id: 20110916-0149and
Android Development Toolkit Version: 16.0.1.v201112150204-238534EDIT: This problem is solved. If I don't declare the libary as needed in the manifest it works. (Strange behaviour)
解决方案Make sure your
.JAR
is created withJavaSE-1.6, not 1.7
这篇关于包括罐与日食的apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文