一、使用Eclipse-Neon配合java-1.8版本,导出APK时报错:
如果是 Version 51 ,就表示 JDK7 编译的 class 不能运行在 JDK6 上,所以需要在本地安装 JDK7 。
A:报错记录:
PARSE ERROR:
[2016-07-30 16:39:02 - WeatherReportDemo] Dx unsupported class file version 52.0
...while parsing com/sgd/weatherreportdemo/R$style.class
[2016-07-30 16:39:02 - WeatherReportDemo] Dx 79 errors; aborting
[2016-07-30 16:39:02 - WeatherReportDemo] Conversion to Dalvik format failed with error 1
B:解决方案:
做出以下修改:
Windows——>Perferences——>Java——>Compiler——>Compiler compliance level : 1.7
C:参考文章:
·http://stackoverflow.com/questions/38164679/dx-unsupported-class-file-version-52-0-while-parsing-com-example-test1-buildc
·http://www.hangge.com/blog/cache/detail_1286.html