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:
could problem trying use swarmconnect library 2 projects (lite , pro)?
edit:
below file structure lite version working perfectly. compiles , runs on emulator.
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.
remove
jar
files exceptandroid-support-v4.jar
'android dependencies' folder under project explorer in eclipse.similarly remove jar files except
android-support-v4.jar
libs
folder under project explorer in eclipse.now right click on project-> select properties-> select java build path-> select add external jars. add necessary
jar
files (just make sure add particularjar
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
Post a Comment