android launch issues. Unsupported class file major version 57

前端 未结 6 507
耶瑟儿~
耶瑟儿~ 2020-12-07 00:35

I have followed the mac android getting started but when I run-android it fails with the following error(s). I\'ve tried to find the answer online but I cant seem to find a

6条回答
  •  清歌不尽
    2020-12-07 01:02

    I suffer the same issue when run gradle build. According to search from google and github. I found the gradle current version (5.x.x) not support jdk 13. Finally, the 6.x version support it, but it has not been released, so I have to downgrade the jdk version to 12.x.

    Downgrade java to 12 https://www.jverdeyen.be/mac/downgrade-brew-cask-application/

    brew cask uninstall adoptopenjdk # uninstall jdk version 13.x
    brew tap AdoptOpenJDK/openjdk
    brew cask install adoptopenjdk12
    

提交回复
热议问题