Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Include External Jar in Build (Without Eclipse)

Tags:

java

android

I'm working with Android at the moment, trying to avoid using Eclipse (for which I have an irrational hatred).

I need to include an external .jar file (used in my Activity)and have no idea how to link it for ant debug...

I've read up on build.xml files but adding <path id="compiler.classpath">...</...> or <classpath> nodes to the XML doesn't help fix it.

Hope someone can help me out!

like image 633
connec Avatar asked Oct 14 '10 17:10

connec


1 Answers

Just put it in the libs/ directory. Everything else is taken care of from there -- no Ant script modifications are needed. For example, here is a sample project showing integrating a BeanShell interpreter this way.

like image 146
CommonsWare Avatar answered Oct 05 '22 13:10

CommonsWare