Unsupported major.minor version 52.0 in my app

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

    Got the same issue outside of Android Studio, when trying to build for Cordova using the sdk from command line (cordova build android).

    The solution provided by Rudy works in this case too. You just don't downgrade the version of Build Tools from Android Studio but you do it using the android sdk manager ui.

提交回复
热议问题