2

I have tried to really research this error and I can't seem to find a fix.

I upgraded my android studios and I am receiving the following error:

Error:(1, 1) A problem occurred evaluating project ':app'.

java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0

I cannot run a basic hello world program. I don't know if my gradle is messed up or if I am having java problems.

I am running:

Android Studios 2.3.1

Java Version 8 Update 101 (build 1.8.0_101-b13)

Windows 8

How would I go about resolving this error? Thank you.

hasanzuav
  • 554
  • 5
  • 15
  • 1
    http://stackoverflow.com/questions/35937875/unsupported-major-minor-version-52-0-when-rendering-in-android-studio/38503342#38503342 – IntelliJ Amiya Apr 18 '17 at 05:20
  • 1
    at first make sure using 1.8 or not http://stackoverflow.com/questions/39116095/android-studio-buildtools-24-0-1-requires-java-1-8-or-above/39116275#39116275 – IntelliJ Amiya Apr 18 '17 at 05:22

2 Answers2

2

inside the "Project Structure" settings window enabled the "Use embedded JDK (recommended)" in the SDK location tab

1

I had to go to File > Project Structure

In the JDK location, I had to change the path to: C:\Program Files\Java\jdk1.8.0_101

It built without any errors.

hasanzuav
  • 554
  • 5
  • 15