我已经从 https://bitbucket.org/iBotPeaches/apktool/downloads 下载了 apktool_2.1.1.jar 和 apktool_2.0.0rc4.jar并将其粘贴到 C://Windows 中。然而,当我在 cmd 中运行 apktool 时,它返回:
C:\Users\arpit>apktool 'apktool' is not recognized as an internal or external command, operable program or batch file.
任何帮助将不胜感激。
最佳答案
->从这里下载 Windows 包装脚本 https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/windows/apktool.bat
(右键单击,将链接另存为 apktool.bat)
->下载apktool-2 https://bitbucket.org/iBotPeaches/apktool/downloads
(在这里找到最新的)
-> 将下载的 jar 重命名为 apktool.jar
-> 将两个文件(apktool.jar 和 apktool.bat)移动到你的 System32 目录(通常是 C:\Windows\system32)
如果您无权访问 C:\Windows\system32,您可以将这两个文件放在任何位置,然后将该目录添加到您的环境变量系统 PATH 变量中。
-> 尝试通过命令提示符运行带有管理员权限的 apktool
关于apktool - 如何在 Win 10 上安装 apktool?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38685928/