You cannot have Android resources in a JAR. Use Android library projects for this:
http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject On Mon, Dec 20, 2010 at 9:18 PM, Feng Qian <[email protected]> wrote: > Hi, > I am using a third-party jar as a prebuilt static java library which has > some resource files in it. > I made Android.mk like this: > LOCAL_MODULE := my-app > LOCAL_STATIC_JAVA_LIBRARIES := third-party-prebuilt-lib > include $(BUILD_PACKAGE) > However, resources from 3rd party jar is not included in the final .apk > file. I used 'aapt list my-app.apk'. > On the other hand, the package built by Eclipse seems preserving resources > from 3rd party jars. > Does anyone know how to include resources from a static library into the > final .apk? > Thanks in advance, > Feng > > -- > 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- 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

