In your .mk file, you have to add a line with the library's pkg name
like

        LOCAL_JAVA_LIBRARIES := com.yourdomain.yourlibpkg

and in your project's AndroidManifest.xml file, you have to add a line
with the library's pkg name like

        <uses-library android:name="com.yourdomain.yourlibpkg" />

Take a look at this page, it's useful:

Build Cookbook | Android Open Source
http://pdk.android.com/online-pdk/guide/build_cookbook.html

-Rodney


On Dec 30, 6:44 pm, Ruini Xue <[email protected]> wrote:
> Hello,
>
>  I am working on the Android builtin Contact app. It can be build with "make
> Contact" in the repo. Now, I want to use a 3rd party jar, and how to package
> the jar into Contact.apk?
>
>  It is easy to include external jar for Eclipse Android project, but not for
> android git repo codes. I am afraid package/apps/Contact/Android.mk should
> be changed to include external jar, how to do it?
>
> -- leo

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to