Unsupported major.minor version 52.0 in my app

后端 未结 28 2600
心在旅途
心在旅途 2020-11-28 03:43

I\'m trying to compile my Android project and I\'m getting this error

[INFO] Exception in thread \"main\" java.lang.UnsupportedClassVersionError: com/android         


        
28条回答
  •  执笔经年
    2020-11-28 04:10

    What no one here is saying is that with Build Tools 24.0.0, Java 8 is required and most people have either 1.6 or 1.7.

    So yeah, setting the build tool to 23.x.x would 'solve' the problem but the root cause is the Java version on your system.

    On the long term, you might want to upgrade your dev environment to use JDK8 to make use the new language enhancements and the jack compiler.

提交回复
热议问题