Continuous Delivery: Building Android Library projectleena
November 4, 2011
This post talks about how to build an Android Project using ant which depends on an Android Library project.
- Add default.properties in the library project and add android.library=truein the same.
- Run the command in the main Android Project
android update project –path . –library ../path-to-the-library/Note: This always has to be relative path.
- Now running ant release should build the library project too.
Note: The android command mentioned in the second step adds an entry in the default.properties file. If you need to override that in different environments, override that in thelocal.properties. Even there, it has to be relative path, the absolute path will not work.