Unity3D打包时,编译错误

最近打包Unity3D的APK包时,报编译错误,

Failed to compile Java code to DEX:
D:\Work\Parkour\branches\20131219_box360\Temp/StagingArea> java -Xmx1024M -Djava.ext.dirs="E:/Andriod/sdk\platform-tools/lib/" -jar "E:/Andriod/sdk\platform-tools/lib/dx.jar" --dex --verbose --output=bin/classes.dex bin/classes.jar plugins
processing archive bin\classes.jar...
processing com/unity3d/player/a/a.class...
processing com/unity3d/player/a/b.class...
processing com/unity3d/player/a/c$a$a.class...
processing com/unity3d/player/a/c$a.class...
processing com/unity3d/player/a/c.class...
processing com/unity3d/player/a/d$a$a.class...
processing com/unity3d/player/a/d$a.class...
processing com/unity3d/player/a/d.class...
processing com/unity3d/player/a/e$a$1.class...
processing com/unity3d/player/a/e$a$2.class...
processing com/unity3d/player/a/e$a.class...
processing com/unity3d/player/a/e.class...
processing com/unity3d/player/a/f$a.class...
processing com/unity3d/player/a/f.class...
processing com/unity3d/player/a/g.class...
processing com/unity3d/player/a/h.class...

.....

找了半天,居然发现是杀毒软件导致的,当unity打包编译时,杀毒软件会认为生成新的文件(.DEX)是病毒给删除或者隔离了,结果导致打包不能继续,所以当打包时,关闭杀毒软件。

你可能感兴趣的:(Unity项目笔记)