I want to add a external third party jar file in the inbuilt android app.
I've added the LOCAL_CLASSPATH variable in Android.mk due to which the compilation goes fine. But during runtime, it is not able to find the class definiation which is in the JAR.
Which is the variable I need to set to add the third party JARs in the .dex/.apk ?
TIA.
An example is more than just talking.
...
LOCAL_STATIC_JAVA_LIBRARIES := libmylibs
LOCAL_PACKAGE_NAME := myapp
...
include $(BUILD_PACKAGE)
##################################################
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := libmylibs:mylib.jar
include $(BUILD_MULTI_PREBUILT)
Note: put the "mylib.jar" at the project root.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With