Reputation: 239
While running the code it shows a alert
Errors occurred during the build Errors running builder 'Android Package Builder' on project 'Test'.com/android/dx/command/dexer/Main : Unsupported major.minor version 52.0
Eclipse was running properly but after the updation of eclipse it shows the error.previously it was running well,i.e before updation help me solve this issue and run my project.
also help me with some update-able adt bundle.
Upvotes: 16
Views: 14718
Reputation: 1
Adding the below line in project.properties and setting Java to 1.7 solved the issue to me.
sdk.buildtools=23.0.3
Upvotes: 0
Reputation: 41
The only one reason for Unsupported major.minor version 52.0 in eclipse is API Level 24
So please do following things to resolve Issue in Eclipse :
And its Work fine.
Upvotes: 3
Reputation: 17695
I have got the same exact issue, but not the same solution solved it :
To fix this, i have to go in my project.properties
file :
And in this file add this line :
sdk.buildtools=23.0.3
Upvotes: 50
Reputation: 239
Solved the issue , Previously I compiled with jAVA 1.7 and run in jdk 1.8 that was the reason of my issue now i download JAVA 1.8 now it is running
Upvotes: 4
Reputation: 2252
your code might has been compiled with Java Higher version(i.e. 8), while you are trying to run it with Java Lower version(i.e. 7). Note that Eclipse has it's own compiler and does not use the one from the JDK and most probably it is configured to use Java Higher version(i.e. 8). Check you eclipse compiler preferences.
Upvotes: 4