Android package constructor error: unsupported Major Minor version 52.0

I am currently using Eclipse Mars (64 bit) for 64-bit Windows 7. I installed JDK 1.7 (64 bit). I used this Eclipse starting from a month with the ADT plugin installed from the very beginning.

However, recently, when I updated my Android SDK to include the latest Android N platform, I get errors when starting any Android project in my workspace.

The error is as follows:

Android Package Designer Error: Unable to create HelloWorld project Unsupported major minor version 52.0

However, when I tried the same thing on Eclipse Juno (64 bit) on another 64-bit Windows 7 system with JDK 1.7 (64 bit), I did not encounter such a problem.

Is this a problem with Eclipse or Java?

enter image description here

+7
java android eclipse
source share
1 answer

I think I could find an answer for this. Not sure my conclusions are correct, but this fix worked for me:

In the project.properties file, add the following:

sdk.buildtools=<something lower than 24.x> 

In my case, it was 23.0.3.

The final part, someone will correct me if I am mistaken: it seems that the new version of Android Build Tools uses JDK version 1.8. In my case, I use Android Studio and Eclipse (Eclipse for an old project), and Android Studio installed the latest build tools.

+13
source share

All Articles