Reputation: 2200
I have a couple of third party classes which serve as a library I can build my application upon. They are contained in a folder which was added Java Build Path -> Libraries (in Eclipse) with "Add Class Folder". It works fine so far an my app compiles. But the produced .apk contains only my classes and therefore the application does not run.
How can I tell Eclipse to package the third party classes into the .apk as well?
Upvotes: 2
Views: 6170
Reputation: 21
Don't need to add anything to Build Path. Just create a sub-folder called "libs" in the project. Put all jar files in libs.
Upvotes: 2
Reputation: 201088
Eclipse will package all 3rd party classes in your apk that are in your Android project's classpath. It does this by default, as long as you are using the Android SDK plugin for Eclipse.
This is a duplicate of this question (and many others): How can I use external JARs in an Android project?
Upvotes: 3