【Android】Error building Player: CommandInvokationFailure: Unable to convert classes into dex format.
来源:互联网 发布:淘宝提交大学生认证 编辑:程序博客网 时间:2024/06/05 03:17
Unity 打包apk 时报错
报错:Error building Player: CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details.
D:/jdk1.7\bin\java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir="E:/android-sdk-windows\tools" -Dfile.encoding=UTF8 -jar "D:\Unity5.2.3SetUp\Editor\Data\PlaybackEngines\androidplayer/Tools\sdktools.jar" -
解决方法:现在导出jar包的方式是直接在eclipse中导出的1.选择工程名鼠标右键2选择export3,选择jave下的jar file点击“next”,然后在选择需要将哪些文件打成jar的时候要注意,只选择src文件,其余的文件都不要选择,这样打出的jar包就是没有问题的。在将android工程 中的文件夹拷入到unity中的时候值选择Androidmianfest.xml和res文件就可以了。然后在写相依的代码调用就可以了。
(二)
还有一种可能就是 jar包冲突
1).classes.jar冲突,unity编译时默认包含了classes.jar ,所以删除Plugins/Android/libs 下的classes.jar
2).类似android-support-v13.jar和android-support-v4.jar的冲突,保留android-support-v13.jar。
正确的流程是 在Eclipse 中 只打包bin目录下的jar包 然后把AndroidManifest.xml放在Assets\Plugins \Android 下 没有的自己创建
如果有一些特别操作 如SDK 把 Eclipse中 res目录也拷贝到Assets\Plugins \Android 下 即可
- 【Android】Error building Player: CommandInvokationFailure: Unable to convert classes into dex format.
- Error building Player: CommandInvokationFailure: Unable to convert classes into dex format. See the
- Error building Player: CommandInvokationFailure: Unable to convert classes into dex format. See the
- unity导出apk时Error building Player: CommandInvokationFailure: Unable to convert classes into dex forma
- CommandInvokationFailure: Unable to convert classes into dex format解决方法
- unity sdk 报错CommandInvokationFailure: Unable to convert classes into dex format解决方法
- [Unity5.3.6与APK]CommandInvokationFailure:Unable to convert classes into dex format错误的解决
- Unity3D-导出APK报错CommandInvokationFailure: Unable to convert classes into dex format.
- Unable to convert classes into dex format 解决方案之一
- Unity Build APK 出现Unable to convert classes into dex format错误
- Unable to convert classes into dex format. See the Console for details
- Unity Build APK 出现Unable to convert classes into dex format错误
- Unity Build APK 出现Unable to convert classes into dex format错误
- Error building Player: CommandInvokationFailure: Failed to re-package resources
- Error building Player CommandInvokationFailure Failed to re-package resources.
- Error building Player: UnityException: Unable to install APK!
- Error:Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define xxxx
- Android Error in Eclipse: “Unable to execute dex: Cannot merge new index 66904 into a non-jumbo inst
- Saltstack之Salt-api安装使用
- dataset for person re-id
- 使用Navicat for MySQL数据库结构同步和数据同步的方法
- Ubuntu1604 X64 libs3 编译
- 解决maven项目报错问题----指定jdk版本号
- 【Android】Error building Player: CommandInvokationFailure: Unable to convert classes into dex format.
- 日期字符串校验的问题
- Android 内存泄漏总结
- 通过ajax记录打印信息
- 如何提升自己的技术
- 第十四周项目一数组大折腾(4)创建一个长度为16的整形数组a并初始化,删除数组中所有能被3整除的元素(数组中实际有效使用的元素将不足16),输出删除后数组中的全部元素
- zookeeper windows环境 安装
- 剑指offer——面试题27:二叉搜索树与双向链表
- 17