How can I use external JARs in an Android project?

前端 未结 12 1603
甜味超标
甜味超标 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条回答
  •  萌比男神i
    2020-11-21 11:59

    in android studio if using gradle

    add this to build.gradle

    compile fileTree(dir: 'libs', include: ['*.jar'])
    

    and add the jar file to libs folder

提交回复
热议问题