简体   繁体   English

Android多个项目共享同一库问题

[英]android multiple projects share same library issue

I am developing android apps using android sdk. 我正在使用android sdk开发android应用程序。 I have a common library that is shared by multiple projects. 我有一个由多个项目共享的公共库。 The projects use the same code from the shared library but with their own res, image, and sound, etc. But if these projects are installed on the same device, when I run one of them, it will bring up other apps that built from the shared library. 这些项目使用共享库中的相同代码,但具有自己的资源,图像和声音等。但是,如果将这些项目安装在同一设备上,则当我运行其中一个项目时,它将启动从中构建的其他应用程序共享库。 Anyone can help me on how to solve this issue? 任何人都可以帮助我解决该问题? Thanks 谢谢 在此处输入图片说明

It appears that you are not using a true Android Library Project, described here: http://developer.android.com/tools/projects/index.html . 似乎您使用的不是真正的Android库项目,如此处所述: http : //developer.android.com/tools/projects/index.html

The "Complete Action Using" Dialog appears when firing an Intent to load an Activity that may not be in the same Application. 触发意图加载可能不在同一应用程序中的Activity ,将出现“使用完整动作”对话框。

Please verify that you are sharing resources and code via an Android Library Project. 请确认您正在通过Android库项目共享资源和代码。

With an Android Library Project, you can share resources between multiple different applications that are distributed via separate .APK's without confusion between components. 使用Android Library Project,您可以在通过单独的.APK分发的多个不同应用程序之间共享资源,而不会在组件之间造成混淆。 It is done all the time by many developers. 许多开发人员一直在进行此操作。

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

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