Unsupported major.minor version 52.0 in my app
I face this problem too when making new project from android studio.
I've been able to resolve this by downgrading buildToolsVersion in app gradle setting:
change {module-name}/build.gradle line
buildToolsVersion "24.0.0 rc1"
to
buildToolsVersion "23.0.3"
@Edit:
In Android Studio 2.1 Go to File-> Project Structure->App -> Build Tool Version. Change it to 23.0.3
Do the method above, only when you are using java version 7 and for some reason do not want to upgrade to java 8 yet.
Hope this helps
Unsupported major.minor version 52.0 in commande
I think you need to update the JAVA_HOME environment variable to the JDK8 installation directory. Make sure the PATH environment variable points to the same directory too (in this case remember to add a final "/bin" to the path).
If you see this answer, you will note that 52 means it needs Java SE 8 or superior.
What does 'Unsupported major.minor version 52.0' mean, and how do I fix it?
You don't need to change the compliance level here, or rather, you should but that's not the issue.
The code compliance ensures your code is compatible with a given Java version.
For instance, if you have a code compliance targeting Java 6, you can't use Java 7's or 8's new syntax features (e.g. the diamond, the lambdas, etc. etc.).
The actual issue here is that you are trying to compile something in a Java version that seems different from the project dependencies in the classpath.
Instead, you should check the JDK/JRE you're using to build.
In Eclipse, open the project properties and check the selected JRE in the Java build path.
If you're using custom Ant (etc.) scripts, you also want to take a look there, in case the above is not sufficient per se.
Related Topics
Java - Declaring from Interface Type Instead of Class
How to Close a Java Swing Application from the Code
How to Convert Image to Byte Array in Java
Collections Sort(List<T>,Comparator<? Super T>) Method Example
Does Java Casting Introduce Overhead? Why
How to Implement Enum with Generics
In Java, Are Enum Types Inside a Class Static
How Big Is an Object Reference in Java and Precisely What Information Does It Contain
Is Default No-Args Constructor Mandatory for Gson
How to Make a Jtable Non-Editable
Java Output Formatting for Strings
Why Doesn't Java Throw an Exception When Dividing by 0.0
How to Read Firestore Sub-Collection and Pass It to Firestorerecycleroptions
Difference Between Actionbarsherlock and Actionbar Compatibility
Android - Prevent White Screen at Startup
How to Generate a Qr Code for an Android Application
How to Change Text of a Textview in Navigation Drawer Header