简体   繁体   English

Android Studio如何维护共享库?

[英]Android studio how to maintain shared library?

I have two apps, one free and a paid version with more features. 我有两个应用程序,一个是免费的,另一个是具有更多功能的付费版本。 I am placing the shared code in an external library as encouraged in android docs. 我将共享代码放在android文档中鼓励的外部库中。

But when I import the library project, it just copies all files to the existing project then I'm left with two separate projects to maintain making a shared library seem pointless. 但是,当我导入库项目时,它只是将所有文件复制到现有项目中,然后剩下两个独立的项目,以使共享库显得毫无意义。

How can I maintain the library separately, where changes will show in both projects (both the free and paid versions)? 我如何单独维护该库,更改将在两个项目中显示(免费版和付费版)?

搜索后,我发现可以通过设置库的路径来添加参考,如此处答案所示: Android studio将外部项目添加到build.gradle

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

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