java - Multiple dex files - Conversion to Dalvik format failed - Unable to execute dex -


i have 2 app versions - pro , lite. both on market @ v1.01. trying release v1.1 both. update includes swawrmconnect integration in order use global leaderboards.

i should start off saying know not maintaining code correctly. have 2 separate apps , share 90% of code. maintain them separately because after week or 2 or 3 of failing figure out how library , share code, gave , went way it.

swarmconnect first jar have used , had make library 2 apps (see screenshot of file structure below).

right lite version working , ready release. trying pro version needs release. java/xml files date , ready. when went run pro version in emulator, below error:

[2013-04-18 11:24:41 - dex loader] unable execute dex: multiple dex files define lcom/swarmconnect/loopj/android/http/asynchttpresponsehandler; [2013-04-18 11:24:41 - bibletriviapro] conversion dalvik format failed: unable execute dex: multiple dex files define lcom/swarmconnect/loopj/android/http/asynchttpresponsehandler; 

things i've tried:

  • clean/rebuild
  • update eclipse
  • delete bin , gen folders
  • restart eclipse
  • plus other stuff

my file structure:

enter image description here

could problem trying use swarmconnect library 2 projects (lite , pro)?

edit:

below file structure lite version working perfectly. compiles , runs on emulator.

enter image description here

coincidentally ran same issue day before yesterday. here's suggest do.

first , foremost make sure have backup of jars presently residing in 'android dependencies'/'libs' folder.

now, lets fix lite version first following these steps.

  1. remove jar files except android-support-v4.jar 'android dependencies' folder under project explorer in eclipse.

  2. similarly remove jar files except android-support-v4.jar libs folder under project explorer in eclipse.

  3. now right click on project-> select properties-> select java build path-> select add external jars. add necessary jar files (just make sure add particular jar file once).

finally clean project , build it. apply same sequence of steps pro version. should it.

update:- in case see eclipse cribbing compile time errors after doing all might have fix compile time errors doing necessary imports pressing ctrl+shift+o.

[i assume there's no linkage between pro , lite versions of project in terms of source dependencies etc.. mean totally independent.]

hope helps.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -