导入一个项目包成Android的另一个项目包 [英] Import one project packages into another project packages in android

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

问题描述

几个月前,我创建一个项目的名字是在我使用的微调,imageswitcher,购物车和其他一些活动,营造电子商务网站。最近的产品,即时创建一个新的项目,该项目的名称是扫描仪在这方面,我使用集成zxing libaray扫描QR code.The问题扫描仪是我想添加这个扫描器项目我所有的产品的活动。当我复制产品项目的所有包并将其粘贴到扫描仪项目中,logcat的显示错误,但控制台显示,有些功能missing.I不明白的问题,我检查了所有的活动。这是可以导入一个项目到另一个project.How我能做到这一点?
任何帮助是非常AP preciated。

A few months back , I'm create a project that's name is products in which i'm using spinner,imageswitcher,shopping cart and some other activities to create ecommerce site .Recently ,i.m create a new project that's name is scanner, in this i integrate a scanner using zxing libaray for scanning QR code.The problem is that i want to add all my product activities in this scanner project. When i copy all packages of product project and paste it into scanner project,the logcat show no error but console display that some features missing.I don't understand the problem,i checked all the activities. Is this possible to import one project into another project.How could i do this? Any help is highly appreciated.

推荐答案

您应该设置产品项目是一个库项目:
右键单击项目在Eclipse - >属性 - > Android的 - >检查isLibrary

You should set products project to be a library project : Right click on project in Eclipse -> properties -> Android -> check isLibrary.

在扫描仪的项目做到:
右键单击项目在Eclipse - >属性 - > Android的 - >添加 - >选择产品

In your scanner project do: Right click on project in Eclipse -> properties -> Android -> Add -> select products.

现在你可以使用在产品定义从扫描项目什么。

Now your can use anything that's defined in products from scanner project.

这篇关于导入一个项目包成Android的另一个项目包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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