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.
Here is what I used to solve the problem :
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := path_to_jar_file.jar include $(BUILD_MULTI_PREBUILT)
This should be added in Android.mk after include $(BUILD_PACKAGE)
Android.mk
include $(BUILD_PACKAGE)
You also need to specify the library name in LOCAL_STATIC_JAVA_LIBRARIES for compilation.
LOCAL_STATIC_JAVA_LIBRARIES