Dx unsupported class file version 52.0

最近用ADT时遇到这个bug,折腾了好几天。

报错信息:

Dx unsupported class file version 52.0

Conversion to Dalvik format failed with error 1

原因:

可能是用jdk 1.8运行程序时,某些类无法解析。。

解决方案:

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

 

如果还是无法解决,更详细的方案参见stack overflow:

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

 

posted on 2016-09-27 21:44  乐之者v  阅读(5344)  评论(1编辑  收藏  举报

导航