dexexception:不支持版本 [英] dexexception: not support version

查看:91
本文介绍了dexexception:不支持版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将 apk 转换为源代码.当我输入以下命令时

I was trying to convert apk to source code. When I entered below command

./d2j-dex2jar.sh classes.dex

我遇到了这个异常:

com.googlecode.d2j.DexException: not support version.
at com.googlecode.d2j.reader.DexFileReader.<init>(DexFileReader.java:151)
at com.googlecode.d2j.reader.DexFileReader.<init>(DexFileReader.java:211)
at com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:104)
at com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)
at com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)

我的 apk 版本是 Oreo,dexcompiler 是 dex2jar-2.0.据我所知,这个 dexcompiler 最多支持 N 版本(如果我错了,请纠正我).我已经搜索过这个异常,但没有找到任何答案.

Version of my apk is Oreo and dexcompiler is dex2jar-2.0. As much as I Know this dexcompiler supports upto N version (correct me if I am wrong). I have searched about this exception, but I didn't find any answers.

请帮我解决这个异常

推荐答案

我遇到了同样的问题.使用了更新的版本.现在它工作正常.

I had the same problem. Used the updated version. Now it works fine.

https://github.com/DexPatcher/dex2jar/releases/download/v2.1-20171001-lanchon/dex-tools-2.1-20171001-lanchon.zip

这篇关于dexexception:不支持版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆