简体   繁体   English

如何将apk文件导入android应用程序?

[英]how to import a apk file into android application?

i have an android application in which i need to use a calendar. 我有一个需要使用日历的android应用程序。 Since Android does not offer any default calendar widget, i am using an external library.... The apk of the library is available...how do i import this apk into my android application? 由于Android不提供任何默认的日历小部件,因此我正在使用外部库...。库的apk可用...如何将该apk导入到我的android应用程序中? if this cannot be done, how to import any code into my android application? 如果无法做到这一点,如何将任何代码导入我的android应用程序?

thank you in advance. 先感谢您。

You cannot import an APK. 您无法导入APK。 What you have to import is either the source code or a JAR file. 您需要导入的是源代码或JAR文件。 How can you do that? 你该怎么做? If you are using eclipse just edit your Build Path property for your Android Project and add the JAR (in the case you have a JAR). 如果您使用的是eclipse,则只需为Android项目编辑Build Path属性并添加JAR(如果您有JAR)。

将其作为jar库,然后添加到项目中。

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

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