How can I use external JARs in an Android project?

前端 未结 12 1602
甜味超标
甜味超标 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 12:00

    Yes, you can use it. Here is how:

    1. Your Project -> right click -> Import -> File System -> yourjar.jar
    2. Your Project -> right click -> Properties -> Java Build Path -> Libraries -> Add Jar -> yourjar.jar

    This video might be useful in case you are having some issues.

提交回复
热议问题