Linux下使用apktool打包apk报brut.androlib.AndrolibException

来源:互联网 发布:jquery 数组如何清空 编辑:程序博客网 时间:2024/05/21 17:21

在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后,正常运行。

0 0