最近用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