Search code examples
androideclipseapijarpipeline

Android - Adding JAR File to eclipse (hotpotato API)


I'm having this problem, and tried googling and doing tutorials in eclipse. But, it wasnt really helpful for me to use this .jar file in my project.

Source: https://github.com/brunodecarvalho/hotpotato

To be specific, I downloaded this jar file , added it to my project successfully by copying the jar file into my source folder , then added it by doing(Properties->Add Jars->And added it). Also i did a Project -> Clean.

Then once I start coding as they have shown in the examples, it gives me errors, which proves that the Adding of Jar file was not successful.

I tried in different eclipse workspaces but still no luck.

If I explain what I'm trying to do here, I'm working on a Android Download Manager Project. What I need to do is to create a pipeling connection to the request URL so that I can download the packets parallel.

Please help me find my mistake. Thanks for your time!


Solution

  • Not all Java libraries are compatible with Android. Do what RenegadeAndy wrote here, and if that doesn't work, the lib might really be incompatible with Android. Remember, Android is not a real Java implementation.