官网上指导写的是
Windows:
- Download Windows wrapper script (Right click, Save Link As apktool.bat)
- Download apktool-2 (find newest here)
- Rename downloaded jar to apktool.jar
- Move both files (apktool.jar & apktool.bat) to your Windows directory (Usually C://Windows)
- If you do not have access to C://Windows, you may place the two files anywhere then add that directory to your Environment Variables System PATH variable.
- Try running apktool via command prompt
也就是说不安装在C://Windows
下就需要设置系统变量,即在apktool下载文件夹打开shell,输入以下命令
setx "PATH" "%cd\apktool;%PATH%" -m
但是遇到报错
Error: Unable to initialize main class brut.apktool.Main
Caused by: java.lang.NoClassDefFoundError: java/util/logging/Handler
搜索也没有答案ÿ