android - Unable to execute dex error in console window -
i build app uses holoeverywhere. import holoeverywhere , actionbarsherlock described in manual.
then create new project, according following steps:
- create new android project
- right click on project -> properties -> android -> add, add both actionbarsherlock , holoeverywhere
change android manifest following
<application android:theme="@style/holo.theme"
and change mainactivity imports
org.holoeverywhere.app.*
import org.holoeverywhere.app.activity; import android.os.bundle;
public class mainactivity extends activity {
@override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); }
}
how when run "app", eclipse tells me error in console window:
[2013-05-15 07:45:17 - dex loader] unable execute dex: multiple dex files define landroid/support/v4/accessibilityservice/accessibilityserviceinfocompat$accessibilityserviceinfoversionimpl; [2013-05-15 07:45:17 - myapp] conversion dalvik format failed: unable execute dex: multiple dex files define landroid/support/v4/accessibilityservice/accessibilityserviceinfocompat$accessibilityserviceinfoversionimpl;
what's problem?
remove yourproject/libs/android-support-v4.jar.
abs have library, older (r7 instead of latest r12).
you should manually replace support library contrib/actionbarsherlock/actionbarsherlock/libs/android-support-v4.jar holoeverywhere/support-library/android-support-v4-r12.jar
Comments
Post a Comment