本文主要是介绍Linux下使用apktool打包apk报brut.androlib.AndrolibException,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在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后,正常运行。
这篇关于Linux下使用apktool打包apk报brut.androlib.AndrolibException的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!