简体   繁体   English

将项目包含在另一个项目中

[英]Including project within another project

I built an app and published it for purchase in the Android Market. 我构建了一个应用程序,并将其发布以供在Android Market中购买。 Now what I would like to do is release another version of it that is free. 现在我想做的是发布它的另一个免费版本。 Once you install it though its going to ask you for an activation code. 一旦安装,它会询问您激活码。 I have built that program seperately. 我已经分别构建了该程序。 I was wondering if there was a way I could include my first app into the second one (like an include statement in C# and reference?) I dont want to have to update 2 projects every time I release an update. 我想知道是否有一种方法可以将我的第一个应用程序包含到第二个应用程序中(例如C#和引用中的include语句?),我不想每次发布更新时都必须更新2个项目。

UPDATE UPDATE

Ok, ive managed to set my first application as a library. 好的,我成功地将我的第一个应用程序设置为一个库。 Then I went into the properties of my second application and added the library to it. 然后,进入第二个应用程序的属性,并将库添加到其中。 The src folder for the first application showed up in the second one but Im seeing that the resources were not imported. 第一个应用程序的src文件夹出现在第二个应用程序中,但是我看到资源没有导入。 Is there an easier way of doing this or do I have to manually copy over all my layouts, values and drawables as well? 有没有更简单的方法可以执行此操作,或者我还必须手动复制所有布局,值和可绘制对象?

Read this doc on managing projects . 阅读有关管理项目的文档。 You should probably separate all the common functionality out into a common library project. 您可能应该将所有通用功能分离到一个通用库项目中。

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

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