I almost found the answer in Adding a external jar reference in Android.mk but I'm still not quite there.
My project contains commons-io-2.4.jar and jsch-0.1.49.jar in the libs/ directory. Everything builds beautifully in eclipse. Now I want to write an Android.mk file to build my project automatically.
My Android.mk looks like this, but it's not working.
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := MyProject
LOCAL_CERTIFICATE := platform
LOCAL_STATIC_JAVA_LIBRARIES := jsch-0.1.49 commons-io-2.4
LOCAL_PROGUARD_FLAGS := -include $(LOCAL_PATH)/proguard.flags
include $(BUILD_PACKAGE)
LOCAL_STATIC_JAVA_LIBRARIES := libs
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := libs:jsch-0.1.49 libs:commons-io-2.4
include $(BUILD_MULTI_PREBUILT)
I'm sure there's just a little secret sauce I've gotten wrong, but I can't figure it out.
Is there a good reference for Android.mk files? All I could find were recipes for working with the ndk.