天天看點

Apktool使用報錯:brut.directory.DirectoryException: file must be a directory

我把apktool.bat\apktool.jar和我自己的apk都放到了C://windows下

Apktool使用報錯:brut.directory.DirectoryException: file must be a directory

然後運作cmd

Apktool使用報錯:brut.directory.DirectoryException: file must be a directory

報錯

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: file must be a directory

解決辦法

在其他位置建立檔案夾,例如,在D盤建立檔案夾test,把自己的apk放進去

Apktool使用報錯:brut.directory.DirectoryException: file must be a directory

運作cmd,進入d:/test,執行

apktool d yourappname.apk

Apktool使用報錯:brut.directory.DirectoryException: file must be a directory

等一會兒,會執行成功

Apktool使用報錯:brut.directory.DirectoryException: file must be a directory

檢視test檔案夾,多了一個和app同名的檔案夾。完成了

Apktool使用報錯:brut.directory.DirectoryException: file must be a directory

繼續閱讀