Unsupported major.minor version 52.0 in my app

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

    Your Android build tools are not properly installed. Try installing some other version of build tools and give that version in the gradle file. or you can go to this directory

    C:\Users\\AppData\Local\Android\sdk\build-tools

    and see which build tools is installed. Try changing the build tool version in the gradle file and compile the app to see if it is working.

    i had 22.0.1,23.0.02 and 24.0.0 versions of build tools and only the old 22.0.1 version worked.

    source: i tried it myself and it worked for me.

提交回复
热议问题