Unity Build APK 出现Unable to convert classes into dex format错误
来源:互联网 发布:java面对对象 编辑:程序博客网 时间:2024/06/06 04:37
最近在接SDK,打包时出现如下错误:
Error building Player: CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details.
X:\Program Files\Java\jdk1.X.X_XX\bin\java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir="X:/Android SDK/adt-bundle-windows-x86-20130729/sdk\tools" -Dfile.encoding=UTF8 -jar "X:/Program Files/Unity/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar"
参照大神的博客http://www.unitymanual.com/blog-2429-1336.html,总结了一下自己的解决办法,希望能帮助到别人。
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。
还有其它情况会出现这种情况,比如build jar 包时 路径不对
如果写成
cd %cd%\Temp\com\
也会报这个错误
- Unity Build APK 出现Unable to convert classes into dex format错误
- Unity Build APK 出现Unable to convert classes into dex format错误
- Unity Build APK 出现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.
- unity sdk 报错CommandInvokationFailure: Unable to convert classes into dex format解决方法
- CommandInvokationFailure: Unable to convert classes into dex format解决方法
- Unable to convert classes into dex format 解决方案之一
- unity导出apk时Error building Player: CommandInvokationFailure: Unable to convert classes into dex forma
- 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
- 【Android】Error building Player: CommandInvokationFailure: Unable to convert classes into dex format.
- Unable to convert classes into dex format. See the Console for details
- 错误: Conversion to Dalvik format failed: Unable to execute dex
- 错误: Conversion to Dalvik format failed: Unable to execute dex
- android app运行出现Unable to delete file: .....build\outputs\apk.debug错误
- android 莫名出现Conversion to Dalvik format failed: Unable to execute dex: null 解决方法
- android开发:错误 Conversion to Dalvik format failed: Unable to execute dex: null
- IO
- Linux系统负载升高排查思路
- vue项目优化之页面的按需加载(vue+webpack)
- Greatest Common Increasing Subsequence poj-1423
- Giraph文件分片关键函数
- Unity Build APK 出现Unable to convert classes into dex format错误
- Mysql 学习记一
- C语言中函数参数入栈的顺序
- JS事件处理函数
- 开源数据源之二——C3P0
- JAVASE基础汇总
- javascript 简易时钟
- 2166 中位数
- Feign常见的坑总结