Is it possible to use multidex on Enterprise builds?

I know this isn’t the Enterprise forum, but I originally posted this question on that forum back in January. I’ve updated the post a few times over the months but still haven’t heard anything from someone at Corona who may be able to help:

https://forums.coronalabs.com/topic/53919-how-to-enable-multidex-on-android-builds/

My second last post there (19 June) has a summary of the problem, but I’ll repeat it here. 

  1. We need to use multidexing due to dalvik 65536 method limit.
  2. I added multidexing, the apk built successfully but on running it said that some Corona files were missing.  
  3. A forum user krystian6 suggested copying the Corona files from the Enterprise folder into the project, instead of referencing them in project.properties - this worked and the app would run. 
  4. Facebook login now fails - it seems for the same reason that the Corona files did. However I do not seem to be able to just copy the Facebook SDK files into my project, because there are some src/com/facebook files which require the AndroidManifest that is in the Facebook SDK project and I cannot have 2 in my project (unless I’m missing something).
  5. I’m now stuck as I cannot work out how to include the referenced project in my multidex build.

 

It seems the main part of the problem here is projects which are added as references in the project.properties file, rather than jar files added to the libs folder. I have no idea what else to try in order to get this to work, and I suspect one of Corona’s Android engineers would have a much better understanding of how to make this work.

 

So…is anyone able to help?