问题描述
我正在从命令行运行AAPT2:
%PATH_AAPT2%\aapt2.exe compile -v --dir res -o build
许多资源文件已编译。但是一段时间之后,aapt2随消息中止了
Check Failed: node_stack.size() == 1u
构建输出为:
>C:\Android\aapt2\aapt2.exe compile -v --dir res -o build
res\color\button_back.xml: note: compiling XML.
...
res\drawable\rectangle.xml: note: compiling XML.
res\drawable\row.xml: note: compiling XML.
res\drawable\splash_screen.xml: note: compiling XML.
res\menu\menu_main.xml: note: compiling XML.
aapt2.exe F 08-23 07:52:20 16152 15008 ResourceParser.cpp:346] Check Failed: node_stack.size() == 1u
原因是什么?
使用的AAPT2版本是4.1.0 rc01,但其他版本也发生错误。
该错误似乎与任何资源都不相关。我删除了最近编译的资源,例如menu_main.xml,但该错误还会发生。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)