在用Apktool反编译一个应用的时候正常,没做任何修改,但是在回编译的时候出现了大量的“error: Public symbol aaa/bbb declared here is not defined.”这种错误,费了一些功夫搜了不少答案,终于把问题解决了。
首先贴一下apktool官网上的FAQ:
"error: Public symbol aaa/bbb declared here is not defined."
Usually this isn't an issue by itself, but it's a symptom of other issue. It's general error which may be caused by various specific ones. If you are building an application and there is an error in one of files, this file is ignored and building procedure goes on. Then you get plenty of above errors cause of missing files.
Just look above these errors, there you should find another, real ones. This is general rule for reading error messages: earlier messages are always more important, they might cause later ones.
If error messages are bigger than console/window buffer, so you can't read first lines of output, you will ha