Jars added to an Android library are not getting referenced in the project

后端 未结 3 1222
执念已碎
执念已碎 2021-01-13 14:10

I have created an Android library where I included some external jars. These jars are seen in \"Referenced Libraries\" under the library project. When I reference this libra

相关标签:
3条回答
  • 2021-01-13 14:52

    Exporting jars from library project through the Properties -> Java Build Path -> Order and Export doesn't actually work at the end: Eclipse is able to compile a dependent project, but jars do not appear in the final apk and you get a runtime exception.

    0 讨论(0)
  • 2021-01-13 15:08

    If you've got your library project properly included, go to Properties -> Java Build Path -> Order and Export and check all the JARs you wish to include in your main project. This should work, if everything's in the same workspace.

    0 讨论(0)
  • 2021-01-13 15:17

    Copy the files to your project location, probably in a lib folder. Then try to add the library.

    0 讨论(0)
提交回复
热议问题