Adding library project to Android.mk

463 views Asked by At

My project (A) is dependent on two library projects (B & C). B & C have java sources & resources (layouts, drawables, values).

If I want to build A, I need to include B & C in the Android.mk of A.

Can anyone help me on this?

2

There are 2 answers

0
vishalm On

Add the Projects (B & C) to your product's PRODUCT_PACKAGES += list, so they will be built for sure.

1
Batuhan Coşkun On

You can right click on project A from Package Explorer, then click on Properties --> Java Build Path --> Projects --> Add. Add library projects B and C from here. No need to include them on Manifest. Import classes which you want to use on project A's class.