AVEbrahimi
AVEbrahimi

Reputation: 19154

Android & a library project in eclipse

I have a library beside my main project in an android project. How can I set compiler to it always compile library first and then compiles my main code? Currently I have to compile two times on every build.

Upvotes: 1

Views: 2234

Answers (1)

kalyan pvs
kalyan pvs

Reputation: 14590

To Add Library project to Your Project

1.If you have a jar file then place the jar file in the libs folder in your project. then right click on it and Build Path-->Add to Build Path

2.If you have a library as a project then right click on your Main project Properties-->Android-->Add then select your library project(make sure here library projects with librariesonly appear)

3.if your library project is not appearing in this list then rigth click on your library project Properties-->Android tick isLibrary option there)

you can cjheck out the image like..

enter image description here

if you want to change the priority of your Library

Right Click on your Project Build path--> Configure Build path --> Order and Export

there you will see your library select your library click on top at the right side

the image is like below.

enter image description here

Upvotes: 3

Related Questions