博客文章

Dx unsupported class file version 52.0/Conversion to Dalvik format failed with error 1

作者: andy.      时间: 2016-12-06 21:47:23

cocos2d-x编译安卓版本的时候报:

Dx unsupported class file version 52.0

Conversion to Dalvik format failed with error 1

PARSE ERROR:
[2016-12-06 21:29:33 - dtwb] Dx unsupported class file version 52.0
...while parsing com/mekabetre/dtwb/dtwb.class
[2016-12-06 21:29:33 - dtwb] Dx 6 errors; aborting
[2016-12-06 21:29:33 - dtwb] Conversion to Dalvik format failed with error 1

解决方案:

Window->Preferences->Java->Compiler, 将 "Compiler compliance level" 设置为 1.7

blob.png

 


stack overflow:

http://stackoverflow.com/questions/37902840/got-unsupported-class-file-version-52-0-after-including-a-module-to-a-project