Go Back   Android Forums > Android Discussion > Android Developers

Android Developers Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old 07-09-2009, 01:32 AM   #1 (permalink)
Junior Member
 
Join Date: Jul 2009
Posts: 18
 
Device(s):
isup is on a distinguished road
Red face Include 3rd party code to APK

Is anyone here familiar with Android make system? I have a Java application
which uses the 3rd party library jar. It can be built to an APK file by
either Eclipse or Linux system. The difference is the one built by Eclipse has the 3rd
party code in the APK package but the one built by Linux does not.

How can I add the 3rd party code to the build in Linux by modifing makefile?


Last edited by isup; 07-09-2009 at 01:41 AM.
isup is offline   Reply With Quote
Old 07-10-2009, 04:00 AM   #2 (permalink)
Junior Member
 
Join Date: Jul 2009
Posts: 18
 
Device(s):
isup is on a distinguished road
Red face

Below is my makefile. The generated APK file does not include the classes from Third_party_2.5.jar, even though the build succeeds. The application does not work after the APK is loaded. Any suggestion?

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_STATIC_JAVA_LIBRARIES := libabc
LOCAL_MODULE_TAGS := eng development
LOCAL_SRC_FILES := $(call all-subdir-java-files)
LOCAL_PACKAGE_NAME := ABC_app
include $(BUILD_PACKAGE)
###############################
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := libabc:lib/Third_party_2.5.jar
include $(BUILD_MULTI_PREBUILT)
# Use the folloing include to make our test apk.
include $(call all-makefiles-under,$(LOCAL_PATH))
isup is offline   Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Discussion > Android Developers
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:42 AM.
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
vBulletin Skins by: Relivo Media