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.
在“项目结构”设置窗口中,在“ SDK位置”选项卡中启用了“使用嵌入式JDK(推荐)”
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.