I have a similar problem. I have tried this solution (makefile as
below), but it gives me compilation errors because the java compiler
can´t find the classes defined in the jar files.
---------------------------
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := user
LOCAL_STATIC_JAVA_LIBRARIES += libmyjar
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_JNI_SHARED_LIBRARIES := libmylib
LOCAL_PACKAGE_NAME := MyCameraApp
LOCAL_CERTIFICATE := media
include $(BUILD_PACKAGE)
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := libmyjar:com.company.jar
include $(BUILD_MULTI_PREBUILT)
------------------------------
If I change
LOCAL_STATIC_JAVA_LIBRARIES += libmyjar
to
LOCAL_JAVA_LIBRARIES += com.company.jar
it compiles, but the jar is not included in the apk.
Any suggestions what might be wrong?
Thanks
David
On 28 Apr, 10:43, a2ronus <
a...@theipcompany.nl> wrote:
> Hi allstars,
>
> Thanks a lot! It works now.
>
> For other people that have the same problem: you can find the
> Android.mk file from the Calculator app here in the Android source:
>
>
http://android.git.kernel.org/?p=platform/packages/apps/Calculator.gi...