I got an answer. I am adding this answer here. Because it can be useful for finding others.
There are steps to achieve this.
Note One of the situations for implementing this method is the impossibility of adding JAR files directly to the build path of the main project and it must be dynamically loaded at run time. In normal cases, JAR files can be added to the build path.
please check this link for detailed code and implementation.
How to load jar file at runtime
Android: how to dynamically load classes from a JAR file?
AndEngine Jun 10 '14 at 9:09 2014-06-10 09:09
source share