cocos2dx conversion to dalvik format failed
标题的这个问题不知道有没有朋友遇到过,我就被害惨了一个晚上加一个早上的时间了。
可能其他朋友很多搜conversion to dalvik format failed 都会看到一样的答案,我是针对做cocos2dx游戏遇到的问题。
其实我也是用了那些方法。。。但是最后还是没有解决,因为可能很多人都按照教程的那样子,然后eclipse的项目结构就变成了

然后 demo 就会报The import org.cocos2dx.lib cannot be resolved这样的错误,然后很自然的右键->"Properties"->"Android"->"Library"->"Add"会自动显示刚才添加的lib,添加即可
然后发现错误没有了,然后又build成功了。。。很开心,打包apk吧。。。然后到最后的时候。。“conversion to dalvik format failed” 出现了。
然后我是按照网上的搞了很久,搞来稿去还是一样。
后来早上的时候可能没什么想法,然后灵感一来,想到会不会是包重了呢,
不管,把它干掉remove。但是这样子 demo 就又会报The import org.cocos2dx.lib cannot be resolved,不过反正它也是用libcocos2dx的,源码都有了。。直接拷贝到demo吧。然后demo的src就变成了
。
好了。。。错误没了。。。打包apk吧,反正我打了几次都没问题了。
W{~ZF%WD$ZW_(}9STX.png)
W{~ZF%WD$ZW_(}9STX.png)
cocos2dx conversion to dalvik format failed的更多相关文章
- Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define ...
Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define ... 这个错误是因为有两个相 ...
- Android开发(三十一)——重复引用包错误Conversion to Dalvik format failed
错误:Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/sup ...
- Conversion to Dalvik format failed: Unable to execute dex: null
[2013-11-19 14:18:48 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowException. Check th ...
- 【转】Adnroid4.0 签名混淆打包(conversion to dalvik format failed with error 1)
原文网址:http://jojol-zhou.iteye.com/blog/1220541 自己的解决方法:关闭Eclipse,再开启Eclipse就可以. 最新Eclipse3.7+android ...
- Dx 1 error; aborting Conversion to Dalvik format failed with error 1
Dx 1 error; aborting Conversion to Dalvik format failed with error 1 问题实质是工程中android.jar包大于一个: 保留一个a ...
- android Unable to resolve target 'android-XX'错误和conversion to dalvik format failed with error 1错误
当用eclipse 导入一个已经存在的项目时,经常会遇见:Unable to resolve target 'android-XX' 类似的错误.这是因为导入的项目代码中project.propert ...
- Conversion to Dalvik format failed: Unable to execute dex
最近莫名奇妙遇到“Conversion to Dalvik format failed: Unable to execute dex”错误,stackoverflow以后得到结果 把项目中classp ...
- Conversion to Dalvik format failed with error 1
主要和添�的第三方的包有关系. ======================================= 出现,Conversion to Dalvik format failed with e ...
- Conversion to Dalvik format failed with error 1(android)
1.如果不修改android sdk版本,则使用project clean 命令作用于某工程即可. (该处理方式只是在高版本中兼容了低版本工程,未真正意义上的升级) 2.如果修改android sdk ...
随机推荐
- CentOS7|Redhat7挂载NTFS格式磁盘
//下载安装ntfs-3g_ntfsprogs.tgz软件包进行编译安装 tar -zxf ntfs-3g_ntfsprogs.tgz cd ntfs-3g_ntfsprogs ./configure ...
- IAR安装破解教程
主要讲解IAR软件安装及破解使用 1.下载安装包.注册机 2.点击安装程序 ~ 点击第二个选项进行安装 ~ 然后一直next,再选择安装路径 继续next开始安装,等个五分钟左右即可安装完成 2.破解 ...
- Java知识总结----队列的使用
首先我们要知道使用队列的目的是什么?一般情况下,如果是一些及时消息的处理,并且处理时间很短的情况下是不需要使用队列的,直接阻塞式的方法调用就可以了.但是,如果在消息处理的时候特别费时间,这个时候如果有 ...
- Excel中通过向导方式插入chart
1.插入图表则主要是操作ChartObject对象和Chart对象. Workbook wb = xla.Workbooks.Add(XlSheetType.xlWorksheet); Workshe ...
- MongoDB数据仓储
本篇是作为另一篇随笔的一部分‘搭建一个Web API项目’ MogonDB官网:https://www.mongodb.org/ 安装过程参考园友的分享http://www.cnblogs.com/l ...
- struts2 action重定向action中文乱码处理
比如:Action方法productCategorySave()变量message,传递给Action方法productCategoryAdd(),当变量message为中文变量时,要进行编码设置,不 ...
- 如何降低Unity程序的Drawcall
[如何降低Unity程序的Drawcall] Unity can combine a number of objects at runtime and draws them together with ...
- Vertex and fragment programs
[Vertex and fragment programs] When you use vertex and fragment programs (the so called "progra ...
- 欲望都市游戏设计 背景图层和UI图层的设计
- if UNITY_EDITOR这个判断常用,还有哪个常用捏?
#if DEVELOPMENT_BUILD || UNITY_EDITOR DEVELOPMENT_BUILD表示开发版的意思,会在程序右下角显示 Development Build 我们可以根据这个 ...