Hello, I have created a library by using the Android make system:
LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := eng LOCAL_SRC_FILES := $(call all-subdir-java-files) LOCAL_MODULE := mylibrary include $(BUILD_JAVA_LIBRARY) This produces a Dalvik JAR (i.e. containing .dex, not .class components). What I would like to do is to use this JAR in my Android application project in Eclipse by importing it as an external JAR. The problem is that Eclipse does not like Dalvik JARs and producues the following error message: "Error generating final archive: duplicate entry: classes.dex" Is it possible to: 1. Convert the Dalvik JAR to a Java JAR, maybe by converting .dex to .class or something? I believe the dx tool does the opposite i.e. converting .class to .dex. 2. Somehow specify in the make file so that Android creates a Java JAR instead of the Dalvik JAR? 3. Some other way to make Eclipse understand the Dalvik JAR? Thanks in advance! BR Fredrik -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
