Reputation: 554
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.
Upvotes: 2
Views: 4594
Reputation: 478
inside the "Project Structure" settings window enabled the "Use embedded JDK (recommended)" in the SDK location tab
Upvotes: 2
Reputation: 554
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.
Upvotes: 1