ProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'Ĭompile fileTree(dir: 'libs', include: )Ĭompile ':appcompat-v7:24.1.1'Ĭompile ':design:24.1. Here is my gradle build file: apply plugin: '' Unsupported major.minor version 51.0 error comes when you run a class file created using Java 1.7 (major version 51.0) into a lower JRE version e.g. Do the method above, only when you are using java. This happens when I create a new project and try to run it. In Android Studio 2.1 Go to File-> Project Structure->App -> Build Tool Version. In the project structure of the app, I am using java version 1.7. com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0. I am still getting the error 'Unsupported major.minor version 52.0'. Run with -info or -debug option to get more log output.Įrror:Could not execute build using Gradle installation '/Users/****/.gradle/wrapper/dists/gradle-2.8-all/ah86jmo43de9lfa8xg9ux3c4h/gradle-2.8'. Java Getting error when trying to run new project in Android Studio 2.2.1. I changed the project SDK to Android SDK 24, which targets N and uses Java 1.8. Run with -stacktrace option to get the stack trace. > .process.ProcessException: .ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1 in the case of major.minor version 52.0, the class is compiled using JDK 8 since major. The exact cause is printed on the version e.g. Then upgrade your root adle with build:gradle:2.3.When I try to run my android app in IntelliJ on a Nexus 9, Android 6.0 emulator, I get the following error: Error:Gradle: Exception in thread "main" : com/android/dx/command/Main : Unsupported major.minor version 52.0Īt 1(Native Method)Īt (ClassLoader.java:800)Īt (SecureClassLoader.java:142)Īt (URLClassLoader.java:449)Īt $100(URLClassLoader.java:71)Īt $1.run(URLClassLoader.java:361)Īt $1.run(URLClassLoader.java:355)Īt (Native Method)Īt (URLClassLoader.java:354)Īt (ClassLoader.java:425)Īt $AppClassLoader.loadClass(Launcher.java:308)Īt (ClassLoader.java:358)Īt (LauncherHelper.java:482)Įxception in thread "main" : com/android/dx/command/Main : Unsupported major.minor version 52.0Įxecution failed for task ':app:transformClassesWithDexForDebug'. The unsupported major.minor version error is thrown in Java when a class is compiled using a higher version of the Java Development Kit (JDK) but executed on a lower version of the Java Runtime Environment (JRE). My project SDK is Java 1.7. : org/codehaus/groovy/tools/GroovyStarter (Unsupported major.minor version 52.0) at 0 (Native Method) at (ClassLoader. Error:Android Gradle Build Target: : org/jetbrains/kotlin/android/KotlinOutputParser : Unsupported major.minor version 52.0 I figure this is something to do with the JRE being used, but I have no idea how to fix it. Step 1: Open Android SDK Manager Step 2: See what is installed and follow this guide Always first tap Deselect All so nothing is selected, and then go to town checking items to install or uninstall. Check your JDK in your SDK Location from File -> Project Structure -> SDK Location: I picked java build path JavaSE version from 1.4 to 1.8 and tried. The Unsupported major.minor version 52.0 is related to Java 8. ProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'Ĭompile fileTree(dir: 'libs', include: )Ĭompile ':appcompat-v7:23.1.1'Ĭompile ':gradle:2.1.3'įirst, check your Java version. Xamarin.Android Proguard - Unsupported class version number 52.0 Xamarin.Android Proguard - Unsupported class version number 52.0 xamarin xamarin.android android-proguard 30,159 Solution 1 You need to update the default Android SDK proguard. in the individual module adle filesĪpplicationId "" The UnsupportedClassVersionError is a sub-class of the LinkageError and thrown by the Java Virtual Machine (JVM). NOTE: Do not place your application dependencies here they belong and says can not resolve symbol R.Ĭlasspath ':gradle:2.3.1' Android : Android Studio continues to get a Unsupported major.minor version 52.0 Delphi 31.3K subscribers Subscribe No views 4 minutes ago Android : Android Studio continues to. Unsupported major.minor version 52.0 comes when you are trying to run a class compiled using Java 1.8 compiler into a lower JRE version e.g. > : com/android/build/gradle/AppPlugin :Īlso, When I check my classes I get a red line on every R. I have imported a project that I worked for so many days, but I had to upgrade the Android Studio, then, I get this error : Error:(1, 1) A problem occurred evaluating project ':app'.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |