Sunday, 12 February 2017

java - How do I resolve: "Error evaluating project ':app'.Unsupported major.minor version 52.0



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.


Answer



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.


No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...