Then upgrade your root adle with build:gradle:2.3. Check your JDK in your SDK Location from File -> Project Structure -> SDK Location: 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. 2 warnings UnityEditor.HostView:OnGUI () Click to expand. It is recommended that the compiler be upgraded. in the individual module adle filesĪpplicationId "" warning: D:\Android\SDK\platforms\android-24\android.jar (java/lang/AutoCloseable.class): major version 52 is newer than 51, the highest major version supported by this compiler. NOTE: Do not place your application dependencies here they belong and says can not resolve symbol R.Ĭlasspath ':gradle:2.3.1' email protected java -version java version '1.8.051' Java(TM) SE Runtime Environment (build 1.8.051-b16) Java HotSpot(TM) 64-Bit Server VM (build 25. > : com/android/build/gradle/AppPlugin :Īlso, When I check my classes I get a red line on every R. Check the installed version of Java using the following command. And, I managed to build my app with Target framework 'Android 7.0 (Nougat), Target Android version: Override-Android 7.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'. 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 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. Goto Xamarin Studio Preferences -> SDK Location -> Android Change the Java SDK location in Xamarin Studio! (Not Android sdk). The Unsupported major.minor version 52.0 is related to Java 8. Last and also the most important thing to change: (Mac OS X 227.35 MB jdk-8u102-macosx-圆4.dmg) Unsupported major.minor version 52.0 Java version java version '1.7. 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). 1.7 or 1.8? - I suspect maybe that's the main cause of the error) Unsupported major.minor version 52.0 Android Solutions Solution 1 - Android Check your JAVAHOME to use jdk 1. ![]() ![]() 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. 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. and point Xamarin Studio or Visual Studio to the newer version of the JDK in. 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. saying something to the effect of unsupported major.minor version 52.0. ![]() 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. Android : Unsupported major.minor version 52.0 when rendering in Android Studio Beautify Your Computer. When running a Mule application you are getting errors like the following: : CLASSNAME : Unsupported major.minor version CLASSVERSION This error appears when using Mule standalone or the Anypoint Studio. 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. 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. Error:Android Gradle Build Target: : org/jetbrains/kotlin/android/KotlinOutputParser : Unsupported major.
0 Comments
Leave a Reply. |