Build error javalib.jar is needed by my_app/classes-full-debug.jar?

5,806 views
Skip to first unread message

Pink

unread,
Nov 30, 2010, 3:37:02 AM11/30/10
to Android Building
Hi,

I am trying to build my appliaction by putting in packages/
providers folder.

I am trying to build my provider only.

I have defined my own make file but that doesn't have any thing
like ''out/target/common/obj/JAVA_LIBRARIES/My_featuers_intermiediates/
javalib.jar'.


When i am building my app i am getting error like as follows.

**No rule to make target ''out/target/common/obj/JAVA_LIBRARIES/
my_featuers_intermiediates/javalib.jar' needed by '`out/target/common/
obj/APPS/My_features_intermediates/classes-full-debug.jar'

Where am i doing mistake?

Thanks in advance.

Ying Wang

unread,
Nov 30, 2010, 1:04:11 PM11/30/10
to android-...@googlegroups.com
Please paste your Android.mk here.


--
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

ge gao

unread,
Dec 2, 2010, 4:34:58 AM12/2/10
to android-...@googlegroups.com
your Android.mk  file should look like this:

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_PACKAGE_NAME := SyncClient
LOCAL_CERTIFICATE := platform

LOCAL_SRC_FILES := $(call all-java-files-under, src)



LOCAL_MODULE_TAGS := user eng

LOCAL_STATIC_JAVA_LIBRARIES := common syncml client pim
#LOCAL_STATIC_JAVA_LIBRARIES := hirr4

include $(BUILD_PACKAGE)


include $(CLEAR_VARS) 


#LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := hirr7:*.jar
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := common:libs/funambol-android-common.jar syncml:libs/funambol-android-syncml.jar client:libs/funambol-se-client.jar pim:libs/funambol-se-pim.jar

include $(BUILD_MULTI_PREBUILT)


I have already test it,works fine!

2010/12/1 Ying Wang <wang...@android.com>

Prashant C Mutnal

unread,
Feb 4, 2014, 5:03:41 AM2/4/14
to android-...@googlegroups.com
I followed the same. It worked for me.

I mentioned my jar files at end as mentioned below,

include $(CLEAR_VARS)  

#LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := hirr7:*.jar 
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := common:libs/funambol-android-common.jar syncml:libs/funambol-android-syncml.jar client:libs/funambol-se-client.jar pim:libs/funambol-se-pim.jar
include $(BUILD_MULTI_PREBUILT)

Reply all
Reply to author
Forward
0 new messages