I have an application using the hidden nfc_extras API on Android 4.4.
I do not use the Java Reflection, meaning I re-package the com.android.nfc_extras.jar file and use it in Eclipse as a referenced library.
My application starts two different activities depending on the choice (button) done from the MainActivity layout. This means I also need the android-support-v4.jar library (it was automatically included in my libs folder by Eclipse).
It needs to be signed before being installed.
If on Build Path->Configure Build Path -> Order And Export, the com.android.nfc_extras.jar file is clicked, then when I want to do Export -> Export Android Application, I get the following error:
[Dex Loader] Unable to execute dex: Multiple dex files define Lcom/android/nfc_extras/EeIOException;
If the com.android.nfc_extras.jar file is not clicked, the export/signing is OK but at execution, I have the following errors (among others):
W/dalvikvm( 1015): VFY: unable to find class referenced in signature (Lcom/android/nfc_extras/NfcAdapterExtras;)
...
E/AndroidRuntime( 1015): java.lang.NoClassDefFoundError: com.android.nfc_extras.NfcAdapterExtras
I have another application that only makes use of the com.android.nfc_extras.jar library and not the android-support-v4.jar one, so I am wondering if the problem comes from that.