`

【Android】Unable to execute dex

阅读更多

新建一个工程使用2.2的SDK,工程上有红叉

运行时 报错 Your project contains error(s),please fix them before running your application.

控制台显示:

Unable to execute dex: wrapper was not properly loaded first
Conversion to Dalvik format failed: Unable to execute dex: wrapper was not properly loaded first

解决方案:
找到Eclipse目录下eclipse.ini文件,将最后两句改为
-Xms128m
-Xmx512m
重启eclipse

然后project->clean一下就OK了

 


这个问题一般是由于正在更新Android开发环境导致的


 

分享到:
评论

相关推荐

    Android 错误解决

    ### Android错误解决:Conversion to Dalvik format failed: Unable to execute dex: Wrapper was not properly loaded first 在Android开发过程中,开发者可能会遇到多种类型的错误提示。其中,“Conversion to ...

    android-support-multidex.jar

    用于分包,解决 android 打包时报Unable to execute dex: method ID not in [0, 0xffff]: 65536

    Android 掌上校园.zip

    如果报错:Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/annotation/AnimRes;请删掉PalmCampus工程下lib包里的android-support-v4.jar】

    commons-beanutils-1.8.3-connections.jar

    从commons-beanutils-1.8.3.jar中删除了org/apache/commons/collections目录及其下的类,避免了与commons-collections-3.2.jar一起在android中使用时报Andorid Unable to execute dex: Multiple dex files define错...

    json-lib所需全部jar包

    从commons-beanutils-1.8.3.jar中删除了org/apache/commons/collections目录及其下的类,避免了与commons-collections-3.2.jar一起在android中使用时报Andorid Unable to execute dex: Multiple dex files define错...

    Android项目源码蚌埠掌上校园学生项目.rar

    如果报错:Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/annotation/AnimRes;请删掉PalmCampus工程下lib包里的android-support-v4.jar

    AndroidStudio利用android-support-multidex解决64k的各种异常

    64k的各种异常 ...Unable to execute dex: method ID not in [0, 0xffff]: 65536 或者 UNEXPECTED TOP-LEVEL EXCEPTION:  java.lang.IllegalArgumentException: method ID not in [0, 0xffff]: 65536  at com.

    eclipse+gradle解决android 65k 方法问题

    [2015-06-12 12:26:57 - Iphone] Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536 ``` 这表明应用中的方法数已经超过了 Dalvik 虚拟机能处理的最大值。 #### 三...

    将Android原生的Phone程序通过eclipse跑在模拟器上

    1. **增加JVM内存**:为避免编译时出现`unable to execute dex: java heap space`错误,需要编辑`usr/lib/eclipse/eclipse.ini`文件,加入如下配置: ``` -vm /usr/lib/jvm/java-6-openjdk/jre/bin/java -XX:...

Global site tag (gtag.js) - Google Analytics