0

I have an android project, which uses latest Google API's and Android 15 SDK to build. It also has additional libraries - *.so, *.jar, and assets and resources, if the last two makes any difference. So I would like to build this project via Ant, so I can use that script in my further CruiseControl configuration.

Currently I have only build.xml which automatically generated via this command:

android update project --path .

What should I change to include, those libraries and resources if needed. Please write down the simplest example with library usage. Thank you on advance.

unresolved_external
  • 1,930
  • 5
  • 30
  • 65

1 Answers1

1

Put your JARs in libs/. Set up your Android library projects via the instructions found in the documentation, mostly involving modifying project.properties. You were already building the NDK pieces via the command line using ndk-build.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • sorry for such a dummy question but in to a libs/ folder of which directory android-sdks ? – unresolved_external Apr 26 '12 at 15:23
  • @unresolved_external: Create the `libs/` directory in the root of your project, if it is not already there. – CommonsWare Apr 26 '12 at 15:29
  • @unresolved_external: Fantastic! So, you should be set. If you have problems with your setup, open up a new StackOverflow question with **specific, precise symptoms** of those problems, so you can get better help than rather than demanding that we "write down the simplest example with library usage". – CommonsWare Apr 26 '12 at 15:45
  • I hope this is not a sarcasm) – unresolved_external Apr 26 '12 at 16:04
  • @unresolved_external: No, it's a statement that we cannot help you much, since you felt that it was unnecessary to tell us what actually was wrong. Hence, if you have problems with your setup, open up a new StackOverflow question with specific, precise symptoms of those problems. – CommonsWare Apr 26 '12 at 16:07