Import one project packages into another project p

2019-08-29 23:05发布

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.

1条回答
Ridiculous、
2楼-- · 2019-08-29 23:18

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

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.

查看更多
登录 后发表回答