How the fix the gradle error in Android studio after update preview 3 android android-studio android-gradle-plugin Share Improve this question Follow edited at 5:03 Peter O. ProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'Ĭompile fileTree(dir: 'libs', include: )Ĭompile ':appcompat-v7:24.1.1'Ĭompile ':design:24.1. Unsupported major.minor version 52.0 when rendering in Android Studio (25 answers) Closed 6 years ago. Here is my gradle build file: apply plugin: '' 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. This happens when I create a new project and try to run it. 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). In the project structure of the app, I am using java version 1.7. 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'. 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. While creating android project using VS2015, got the following error, Details: : com/android/dx/command/Main : Unsupported major.minor version 52.0 BlankAppTest C:\Program Files (x86)\MSBuild\Xamarin\Android\ 1853 Also in main. 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 And, I managed to build my app with Target framework 'Android 7.0 (Nougat), Target Android version: Override-Android 7.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'. Now, you should able to build the app without error. Now, instead of using the default path '/usr', please change the path to where the newly installed JDK1.8 folder.Įxample: /Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home Goto Xamarin Studio Preferences -> SDK Location -> Android Change the Java SDK location in Xamarin Studio! (Not Android sdk). Last and also the most important thing to change: (Mac OS X 227.35 MB jdk-8u102-macosx-圆4.dmg) Error:Gradle: Exception in thread main : com/android/dx/command/Main : Unsupported major.minor version 52.0 at. (Mac OS X 圆4 196.89 MB jdk-7u79-macosx-圆4.dmg) Android Studio - Unsupported major.minor version 52.0. So, I have downloaded the Java SDK 1.7 and 1.8 manually from the locations below, then install it (I think I need both). Usually you get error: Unsupported major.minor version 52. 1.7 or 1.8? - I suspect maybe that's the main cause of the error) Unsupported major.minor version 52.0 when rendering in Android Studio Check your JAVAHOME to use jdk 1.8 Also check : the parameter in Android Studio in order to change at File->Other Settings->Default Project Structure->SDKs This is bug in Android Studio. If not mistaken, the default location of the "Java SDK" in Xamarin Studio is always pointing to: /usr (I am not sure how Xamarin Studio choose. NOTE, basically I DO NOT need to remove or uninstall Android SDK Build-tools 24. Because I want to support Android N.Īrgghh!! I can't build my Android app in Xamarin Studio! "Unsupported major.minor version 52.0"Īfter a long investigation, sdk update, etc. I've this - Android SDK Build-tools 24 in my Android SDK manager (In Xamarin Studio). The same machine as where my Xamarin Studio. I've installed Android Studio in my Mac machine. I've updated the Java SDK from 1.7 to 1.8. Spent one whole day on this issue "Unsupported major.minor version 52.0" - just like area 51 ! Crazy.
0 Comments
Leave a Reply. |