How can I use external JARs in an Android project?

前端 未结 12 1468
甜味超标
甜味超标 2020-11-21 11:40

I have created an Android project and added an external JAR (hessian-4.0.1.jar) to my project. I then added the JAR to the build path and checked it off in Order and Export.

12条回答
  •  终归单人心
    2020-11-21 11:41

    Turns out I have not looked good enough at my stack trace, the problem is not that the external JAR is not included.

    The problem is that Android platform is missing javax.naming.* and many other packages that the external JAR has dependencies too.

    Adding external JAR files, and setting Order and Export in Eclipse works as expected with Android projects.

提交回复
热议问题