pxb1988 / dex2jar

Tools to work with android .dex and java .class files
Apache License 2.0
12.26k stars 2.1k forks source link

Build failed when running `./gradlew distZip` #569

Closed adameus03 closed 1 year ago

adameus03 commented 1 year ago

Hello guys I'm going through the dex2jar usage steps listed in the README.md file usage section. However the first step results in an error. The result of the ./gradlew distZip command is as follows:

`(amad㉿kali)-[~/Downloads/dex2jar-2.x] └─$ ./gradlew distZip Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true

FAILURE: Build failed with an exception.

BUILD FAILED in 843ms `

Please help me solve this issue.

headfirst123 commented 1 year ago

你的来信已收到,谢谢

ThexXTURBOXx commented 1 year ago

Unsupported class file major version 61 means that your Java version is mismatching the expected one. Please close this issue and follow the steps in #567

TimoA200 commented 1 year ago

@ThexXTURBOXx your answer is super unhelpful, what is the expected version? And also the mentioned *-error.zip is not getting generated for me.

ThexXTURBOXx commented 1 year ago

@TimoA200 My answer is not super unhelpful, I just expect anyone to be able to do at least a bit of research (like at least googling the error you are getting) before creating a bug report. This is one of the first few results on Google: https://stackoverflow.com/questions/9170832/list-of-java-class-file-format-major-version-numbers This project is built for Java 8 and if you want to use a newer Java version, just follow my link to #578 and go to my fork