Unsupported major.minor version 52.0 in my app

后端 未结 28 2743
心在旅途
心在旅途 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 03:59

    The problem specified:

    Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.

    is caused when is declared inside the build.gradle, buildToolsVersion 24 and we don´t have Java 8 installed that is required for this version. To solve this problem we have to change from buildToolsVersion from 24 to maximum 23:

    Java 8 must be required in the future for Android Studio, so we have to start using Java 8.

提交回复
热议问题