ushahidi / Ushahidi_Android

[Deprecated] Ushahidi Android app For Ushahidi V2.x.x. Working on V3.x.x at
https://github.com/ushahidi/platform-android/
GNU Lesser General Public License v3.0
202 stars 153 forks source link

Multiple dex files define Lcom/ushahidi/android/app/MapItemizedOverlay; #112

Closed djehauti closed 11 years ago

djehauti commented 11 years ago

When compiling Coretest, I get the following output:

[2013-03-09 15:58:17 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/ushahidi/android/app/MapItemizedOverlay; [2013-03-09 15:58:17 - Coretest] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/ushahidi/android/app/MapItemizedOverlay;

I imported the Core project from Ushahidi_Android into eclipse from ADT this included both Core and Coretest, then I imported abs and MergeAdapter and added them both as libraries into Properties -> Android -> Library for Core, and then I did the same for Core into Coretest. I changed the target to Google APIs 17 and the minimum SDK to 8 for both Core and Coretest. Am I missing a step?

Edit: I also changed out the SDK locations in local.properties and .classpath using this as my locator 'grep -iR eyedol *|grep -v author'

djehauti commented 11 years ago

hrmph... I removed the core/bin/core.jar from the buildpath and got it to go through, however, this feels hackish or even kludgish. It seems that it should work with the core.jar and without having to add Core as a library, but in that instance I get:

Description Resource Path Location Type The type android.support.v4.app.FragmentMapActivity cannot be resolved. It is indirectly referenced from required .class files AddReportActivityTest.java /Coretest/src/com/ushahidi/android/app/ui/phone/test line 1 Java Problem

Can anyone shed some light on how this is supposed to go?

djehauti commented 11 years ago

All seems to work fine from here, if anyone thinks I'm doing anything funny please let me know, closing for now