I'm a little confused. I'm trying to create a module that requires the android-support-v4.jar file from the android-sdk/extras/android/support/v4 directory in the android sdk. Building the module doesn't seem to work unless I copy that jar file into my module's lib directory. Can anyone tell me why this isn't working without copying the jar? I thought that was the whole point of build path.
When I do copy the jar, it causes another issue. When I try to add the new module to my app and test it, I get an error like this:
[ERROR] : Failed to run dexer: [ERROR] : [ERROR] : UNEXPECTED TOP-LEVEL EXCEPTION: [ERROR] : java.lang.IllegalArgumentException: already added: Landroid/support/v4/content/Loader$OnLoadCompleteListener; [ERROR] : at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122) [ERROR] : at com.android.dx.dex.file.DexFile.add(DexFile.java:161)which as it turns out is because $(TITANIUM_SDK_DIR)/mobilesdk/osx/3.2.3.GA/android/android-support-v4.jar is also being included. Peeking into this file shows that it is mostly the same as the version I'm trying to use, short a few classes, namely the ones I need. So my question is to the Appcelerator developers: why not simply require the installation of and use the jar directly from the android-sdk/extras directory? Or is the first problem above part of the reason?