Jars added to Android library don't get links in project

I created an Android library where I included some external banks. These banks are displayed in the Reference Libraries as part of the library project. When I refer to this library in another project, it cannot link banks that have been added to the library. It shows errors in the specified library as part of the project.

He had to link the banks that were added to the library, rather, this shows an error in the project to which I added this library. Can someone help me figure this out?

+4
source share
3 answers

If you included the library project correctly, go to Properties -> Java Build Path -> Order and Export and check all the JARs that you want to include in your main project. This should work if everything is in the same workspace.

+1
source

Exporting jars from the library project through Properties -> Java Build Path -> Order and Export does not actually work at the end: Eclipse can compile the dependent project, but the banks are not displayed in the last apk, and you get an exception at runtime.

+3
source

Copy the files to your project location, possibly to the lib folder. Then try adding the library.

0
source

Source: https://habr.com/ru/post/1392025/


All Articles