【Android , Eclipse】Conversion to Dalvik format failed: Unable to execute dex
2012-02-01 13:45
453 查看
最近在Android ICS,编译工程的过程中出现Unable to execute dex: Java heap space 的错误,最后导致Eclipse卡,直到需关闭:
修改步骤:
【1】eclipse.int 修改内存,修改eclipse.ini文件[在Eclipse的安装根目录下] : -Xms256m -Xmx512m
【2】额外导入工程的jar包需要通过 add User Library方式导入
右键工程->build path->add Library->user Library->user Libraries->new->"User Libraries Name"->add JARs
若这个时候出现其他的错误:
【1】请检查Android SDK中的tools与Platform-tools是否为最新的版本,并进行更新
【2】检查SDK版本是否为对应的版本,有没有最近的更新
下面是一段英文引用:
修改步骤:
【1】eclipse.int 修改内存,修改eclipse.ini文件[在Eclipse的安装根目录下] : -Xms256m -Xmx512m
【2】额外导入工程的jar包需要通过 add User Library方式导入
右键工程->build path->add Library->user Library->user Libraries->new->"User Libraries Name"->add JARs
若这个时候出现其他的错误:
【1】请检查Android SDK中的tools与Platform-tools是否为最新的版本,并进行更新
【2】检查SDK版本是否为对应的版本,有没有最近的更新
下面是一段英文引用:
As Android developer, I have met a strange problem when I want use a third party jar, it remained me that: Dex Loader] Unable to execute dex: null Conversion to Dalvik format failed: Unable to execute dex: null out of memory error…An internal error occurred during: “Build Project”. Java heap space This is the DEX Error,I find the solutions by Google, one way is to modify the eclipse.ini, you can increase the memory allocated in eclipse.ini to this: -Xms128m -Xmx512m or something higher, but this didn’t work for me. After modify the eclipse.ini, I cannot start the eclipse. By StackOverflow, I find a solution: eclipse.ini file must have -vm on first line and path on second line. don’t try to put everything into one line! -vm C:\Program Files\Java\jdk1.6.0_07\bin\javaw.exe After add the -vm and the path in my eclipse.ini, I can start my Eclipse and the problem has been resolved. Another way to solve the ” Conversion to Dalvik format failed: Unable to execute dex: null” problem is using the user library, the concrete steps are as follows: 1. Right-click the project in Eclipse and select “Build Path -> Add Libraries…”. 2. Select User Library from the list and click Next. 3. Click the “User Libraries…” button. 4. Click “New…” in the User Libraries dialog. 5. Give the user library a name and select the System library checkbox and click OK. 6. Highlight the newly added user library in the list and click the “Add JARs…” button and add the desired jar files. 7. Click OK on the User Libraries dialog. 8. Make sure the new user library is checked in the Add Library dialog and … Posted by CuteAndroid
相关文章推荐
- Android 报错:Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
- [置顶] eclipse android程序运行报错:Conversion to Dalvik format failed: Unable to execute dex:
- eclipse android程序运行报错:Conversion to Dalvik format failed: Unable to execute dex:
- eclipse android程序运行报错:Conversion to Dalvik format failed: Unable to execute dex:
- Android应用打破65K方法数限制Conversion to Dalvik format failed: Unable to execute dex: method ID not in 65536
- [cos2d-x with android]Conversion to Dalvik format failed: Unable to execute dex
- Android应用65K方法数错误代码Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0
- android 莫名出现Conversion to Dalvik format failed: Unable to execute dex: null 解决方法
- Android应用打破65K方法数限制:Conversion to Dalvik format failed: Unable to execute dex
- android:Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/ke
- Android 工程运行报错 Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOv
- Conversion to Dalvik format failed: Unable to execute dex 解决Android打包错误
- 从cvs导入Android项目,运行报错:Conversion to Dalvik format failed: Unable to execute dex的解决方法
- Android Conversion to Dalvik format failed: Unable to execute dex: Target out of range: +0000fffa
- Android 工程运行报错 Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOv
- android开发:错误 Conversion to Dalvik format failed: Unable to execute dex: null
- 【android初学日志】Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverf<一>
- android:Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/ke
- 【android初学日志】Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverf
- 运行android程序报错 Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define L