How can I use external JARs in an Android project?

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

    I know the OP ends his question with reference to the Eclipse plugin, but I arrived here with a search that didn't specify Eclipse. So here goes for Android Studio:

    1. Add jar file to libs directory (such as copy/paste)
    2. Right-Click on jar file and select "Add as Library..."
    3. click "Ok" on next dialog or renamed if you choose to.

    That's it!

提交回复
热议问题