Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Package Builder error : Unsupported Major Minor version 52.0

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?

enter image description here

like image 523
Parth Doshi Avatar asked Mar 31 '16 15:03

Parth Doshi


1 Answers

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.

like image 79
Larcho Avatar answered Oct 13 '22 01:10

Larcho