Unsupported major.minor version 52.0 in my app

后端 未结 28 2724
心在旅途
心在旅途 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

    I'd had this issue for too long (SO etc hadn't helped) and only just solved it (using sdk 25).

    -The local.properties file proguard.dir var was not applying with ant; I'd specified 5.3.2, but a command line call and signed export build (eclipse) was using 4.7, from the sdk dir(only 5+ supports java 8)

    My solution was to replace the proguard jars (android-sdk/tools/proguard/libs directory) in the sdk with a current (5+) version of proguard.

提交回复
热议问题