Using AIDL files from jar

337 views
Skip to first unread message

Nazar Zherebetskyy

unread,
Dec 15, 2014, 10:31:32 AM12/15/14
to android-...@googlegroups.com
Hi,

I have proprietary jar library with few AIDL files in it, which i need to use in my project.
During AOSP build i receive errors, that includes from AIDL files, are not valid.
Here is Android.mk for this jar:

include $(CLEAR_VARS) 
LOCAL_MODULE := proplib 
LOCAL_MODULE_TAGS := optional 
LOCAL_CERTIFICATE   := platform
LOCAL_SRC_FILES := proplib.jar
LOCAL_MODULE_CLASS := JAVA_LIBRARIES 
LOCAL_MODULE_SUFFIX := $(COMMON_JAVA_PACKAGE_SUFFIX) 
include $(BUILD_PREBUILT) 

I was trying different build options - BUILD_MULTI_PREBUILD, LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES etc.
The problem is that for this AIDL files Stub and Proxies are not generated, and when building my client application I'm not able to access them.

Can someone give me advice how to fix such situation?

Ying Wang

unread,
Dec 15, 2014, 1:59:00 PM12/15/14
to Android Building
The build system does not support aidl (and other source files) inside jar.
You need to extract the source files manually.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages