https://stackoverflow.com/questions/36338152/android-package-builder-error-unsupported-major-minor-version-52-0
I think I might have found the answer for this. Not sure if my conclusions are correct but this fix worked for me:
In your project.properties file add the following:
sdk.buildtools=<something lower than 24.x> //最后改这个解决了问题。
In my case it was 23.0.3.
The conclusion part, someone correct me if I'm wrong here: It seems like the newer version of Android Build Tools uses JDK version 1.8. In my case, I'm using Android Studio and Eclipse (Eclipse for an old project) and Android Studio installed the latest build tools.