Attempting to recover an app I wrote not long ago (do not store in DropBox), I unzipped my .apk and tried to use
试图恢复我不久前写的一个应用程序(不要存储在DropBox中),我解压缩了我的。apk并尝试使用。
d2j-dex2jar classes.dex
to get my source, but got this message instead:
为了得到我的消息来源,但是得到了这个消息:
Error: Could not find or load main class classes.dex
Like all rookies, my main activity (only one, actually) was named MainActivity.java, not Main.java. Is this the source of this error and if so, how can I fix it? If not, what else can I try?
和所有的新手一样,我的主要活动(实际上只有一个)被命名为MainActivity。java,而不是Main.java。这是错误的来源,如果是,我该如何修复它?如果没有,我还能尝试什么?
NOTE: this is being done in the DOS cmd window.
注意:这是在DOS cmd窗口中完成的。
EDIT: wow, nobody has ever seen this?
哇,没人见过这个?
EDIT: I did not use ProGuard (I checked).
编辑:我没有使用ProGuard(我检查过)。
3 个解决方案
#1
5
Ok , so from my work with dex2jar I'd recomment running it directly on the apk file not on the classes.dex . So in your terminal ( using Windows in the exmple )
好的,从我使用dex2jar的工作中,我将会重新评论直接在apk文件上运行,而不是在类。dex。所以在你的终端(使用exmple的窗口)
C:\dex2jar.bat Lost_apk.apk
C:\ dex2jar。蝙蝠Lost_apk.apk
It will spit out a jar file which you can look into with jd-gui.
它将会吐出一个jar文件,您可以使用jd-gui查看它。
#2
0
I'm on mac 10.13.1 I just had this issue. I solve it by chmod 700 lib
cause jar libs in it were not accessible.
我在mac 10.13.1上,我有这个问题。我用chmod 700 lib来解决它,因为它无法访问。
#3
0
Got same issue in windows, solved - path must not contain special symbols, like '!', otherwise utility can't find libraries
在windows上有同样的问题,解决了- path不能包含特殊符号,比如!,否则效用就找不到图书馆。
#1
5
Ok , so from my work with dex2jar I'd recomment running it directly on the apk file not on the classes.dex . So in your terminal ( using Windows in the exmple )
好的,从我使用dex2jar的工作中,我将会重新评论直接在apk文件上运行,而不是在类。dex。所以在你的终端(使用exmple的窗口)
C:\dex2jar.bat Lost_apk.apk
C:\ dex2jar。蝙蝠Lost_apk.apk
It will spit out a jar file which you can look into with jd-gui.
它将会吐出一个jar文件,您可以使用jd-gui查看它。
#2
0
I'm on mac 10.13.1 I just had this issue. I solve it by chmod 700 lib
cause jar libs in it were not accessible.
我在mac 10.13.1上,我有这个问题。我用chmod 700 lib来解决它,因为它无法访问。
#3
0
Got same issue in windows, solved - path must not contain special symbols, like '!', otherwise utility can't find libraries
在windows上有同样的问题,解决了- path不能包含特殊符号,比如!,否则效用就找不到图书馆。