Build error: android.support.v4 package does not exist

8,004 views
Skip to first unread message

Resh

unread,
Oct 18, 2011, 6:35:22 AM10/18/11
to Android Building
Hi,

I am trying to include android compatibility
library(android.support.v4) jar into the contacts source code,to make
use of viewPager and fragment.

As I try to do a make,make is aborted with the message "package
android.support.v4.app does not exist".

Working on gingerbread.Please let me know how to add an external jar
to AOSP and build.

kindly help!

Ying Wang

unread,
Oct 18, 2011, 1:41:18 PM10/18/11
to android-...@googlegroups.com
Use $(BUILD_MULTI_PREBUILT):

##############################
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := android.support.v4.jar
include $(BUILD_MULTI_PREBUILT)

Then in the app's Android.mk you can reference it with:
LOCAL_STATIC_JAVA_LIBRARIES += android.support.v4


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

reshma naik

unread,
Oct 19, 2011, 12:22:05 AM10/19/11
to android-...@googlegroups.com
Thank You!
--
Warm Regards,
Reshma Naik

Yuvi

unread,
Mar 1, 2015, 3:09:53 PM3/1/15
to android-...@googlegroups.com, resh...@gmail.com
Hi Reshma,

Could you please let me know where did you put android.support.v4.jar in Android source, and which make file you edit apart from your application make file.

Regards,
Yuvi

Fakher Hakim

unread,
Jul 2, 2015, 12:02:20 PM7/2/15
to android-...@googlegroups.com, resh...@gmail.com
for anroid studio just add this line in your gradle file :
compile 'com.android.support:support-v4:+'

Reply all
Reply to author
Forward
0 new messages