在Linux下使用apktool 打包apk时,报错:
I: Using Apktool 2.0.1,
I: Smaling smali folder into classes.dex...,
I: Building resources...,
S: WARNING: Could not write to $HOME (\/usr\/share\/httpd),
using \/tmp instead...,
S: Please be aware this is a volatile directory and frameworks could go missing,
please utilize --frame-path if the default storage directory is unavailable,
Exception in thread \"main\" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [\/tmp\/brut_util_Jar_4126812908251323578.tmp...
后面发现是在Linux下使用了Mac版本的apktool和aapt造成的。
改成使用Linux版本的apktool和aapt后,正常运行。