我正在尝试使用终端对 android apk 进行签名和压缩对齐,但出现以下异常。
java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at com.comarch.certificategenerator.GeneratorMainWindow.getPackageInfo(Unknown Source)
at com.comarch.certificategenerator.GeneratorMainWindow.generateAppId(Unknown Source)
at com.comarch.certificategenerator.GeneratorMainWindow.main(Unknown Source)
at com.comarch.certificategenerator.Main.main(Unknown Source)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 5 more
Executing:
我试图找到但不明白为什么会出现此错误。