首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

Android 命令行编译项目时候出现异常

2012-05-16 
Android 命令行编译项目时候出现错误我在编译自己的项目时候出现:执行这个命令后:dx.bat --dex --outputC

Android 命令行编译项目时候出现错误
我在编译自己的项目时候出现:
执行这个命令后:
dx.bat --dex --output=C:/local_programs/testProject/bin/classes.dex C:/local_programs/testProject/bin/classes/test/Android/cmd/


出现这个错误:

Java code
trouble processing:bad class file magic (cafebabe) or version (0033.0000)...while parsing com/szy/dialogs/MainActivity$1.class...while processing com/szy/dialogs/MainActivity$1.classtrouble processing:bad class file magic (cafebabe) or version (0033.0000)...while parsing com/szy/dialogs/MainActivity$10.class...while processing com/szy/dialogs/MainActivity$10.classtrouble processing:bad class file magic (cafebabe) or version (0033.0000)...while parsing com/szy/dialogs/MainActivity$11.class...while processing com/szy/dialogs/MainActivity$11.classtrouble processing:bad class file magic (cafebabe) or version (0033.0000)...while parsing com/szy/dialogs/MainActivity$12.class...while processing com/szy/dialogs/MainActivity$12.classtrouble processing:bad class file magic (cafebabe) or version (0033.0000)...while parsing com/szy/dialogs/MainActivity$13.class...while processing com/szy/dialogs/MainActivity$13.classtrouble processing:bad class file magic (cafebabe) or version (0033.0000)...while parsing com/szy/dialogs/MainActivity$14.class...while processing com/szy/dialogs/MainActivity$14.classtrouble processing:bad class file magic (cafebabe) or version (0033.0000)...while parsing com/szy/dialogs/MainActivity$2.class...while processing com/szy/dialogs/MainActivity$2.classtrouble processing:bad class file magic (cafebabe) or version (0033.0000)...while parsing com/szy/dialogs/MainActivity$3.class...while processing com/szy/dialogs/MainActivity$3.class


谁遇到过,提供下信息。。。



[解决办法]
JDK版本不对,注意环境变量path指定了哪个JDK

热点排行