Unsupported major.minor version 52.0 in Android studio solution

Unsupported major.minor version 52.0 in Android studio solution

After the Android studio was recently updated, an error: java.lang.unsupported classversionerror: COM / Android / DX / command / Main: Unsupported major.minor version 52.0 exception occurred,

1、 This is because the versions of compilesdkversion and buildtoosversion are not matched. For example, here, compilesdkversion is 23, while buildtoolsversion is 24.0.0.rc2. Therefore, an unsupported major.minor version 52.0 exception occurs

Just modify the versions of compleledkversion and builtoolsversion to be consistent.

For example, I can change buildtoolsversion to 23.0.2 here.

2、 If this is not the problem, you can go to the open module settings to see if the complie SDK version and build tools version are empty

3、 If it is not the above problem, upgrade the JDK version to 1.8.

Thank you for reading, hope to help you, thank you for your support to this site!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>