Jars added to an Android library are not getting r

2020-03-24 05:57发布

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 library in my other project, it is not able to link the jars that had been added to library. It shows errors to the referenced library under the project.

It should have linked the jars which are added in library, rather, it shows an error in the project in which I have added this library. Can anyone help me figure this out?

3条回答
迷人小祖宗
2楼-- · 2020-03-24 06:36

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

查看更多
唯我独甜
3楼-- · 2020-03-24 06:39

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.

查看更多
看我几分像从前
4楼-- · 2020-03-24 06:39

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.

查看更多
登录 后发表回答