How to make Android.mk file for Java source files

596 views
Skip to first unread message

Samir Pal

unread,
Aug 3, 2015, 3:06:54 PM8/3/15
to Android Building
Hi ,

I want to create Android.mk file for Java source files which is building fine in Eclipse. I have:
(1) Java Source files
(2) xmlsec.jar

Java source files depends on xmlsec.jar files for compilation

I want to build a module named venue which works like "make venue" and create it.  is below make file OK ?

  LOCAL_PATH := $(call my-dir)
  include $(CLEAR_VARS)
   
  # List of static libraries to include in the package
  LOCAL_STATIC_JAVA_LIBRARIES := xmlsec
   
  # Build all java files in the java subdirectory
  LOCAL_SRC_FILES := $(call all-subdir-java-files)
   
  # Name of the APK to build
  LOCAL_MODULE := venue

include $(BUILD_JAVA_STATIC_LIBRARY)

but I am getting compilation error ..:(
Please help me ..its urgent

Thanks
Samir
   
  # Tell it to build an APK
  include $(BUILD_)

Dean Wheatley

unread,
Sep 12, 2016, 8:55:09 PM9/12/16
to Android Building
Change BUILD_JAVA_STATIC_LIBRARY to BUILD_STATIC_JAVA_LIBRARY
Reply all
Reply to author
Forward
0 new messages