I am currently using Eclipse Mars (64 bit) on Windows 7 64 bit OS. I have installed JDK 1.7 (64 bit). I was using this Eclipse for since a month now with the ADT plugin installed from the beginning.
However, recently when I updated my Android SDK to include the latest Android N platform, I am getting errors while running any Android project in my workspace.
The error is as follows,
Android Package Builder Error: Unable to build project "HelloWorld" Unsupported major minor version 52.0
However, when I tried the same on Eclipse Juno (64 bit) on another Windows 7 64 bit system with JDK 1.7 (64 bit) then I didn't face any such issue.
Is this a problem with Eclipse or Java?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With