导入 Android APK 存档? [英] Import Android APK archive?

查看:23
本文介绍了导入 Android APK 存档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android APK 存档是否可以像 JAR 存档一样导入到另一个 Android 项目中并进行访问?

Can an Android APK archive be imported into another Android project and accessed the same way as a JAR archive can?

推荐答案

不,不是您使用 jar 的方式.如果您有一个想要导入到项目中的 Java 库,您可以像在任何其他 Java 项目中一样简单地添加它.

No not in the way you would use a jar. If you have a java library that you want to import into your project you can simply add it as in any other java project.

如果您有要集成到应用程序中的应用程序的项目文件,您可以创建一个 android 图书馆项目 出这个应用程序.这使您能够为库的布局对象和可绘制对象等构建 R 文件,该文件在包含此库项目的项目中也保持一致.

If you have the project files of an app that you want to integrate in you application you can create an android library project out of this app. This enables you to build a R file for the layout objects and drawables etc. of the library that is also consistent in the project that includes this library project.

这篇关于导入 Android APK 存档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆