In the building howto, OTA_URL is given with a template (step 4.), as well as in the example :
Unfortunately, keeping this string as-is causes the aapt2 compiler to crash :
/bin/bash -c "out/host/linux-x86/bin/aapt2 compile -o out/target/common/obj/APPS/Updater_intermediates/flat-res/vendor/lineage/overlay/microg/packages/apps/Updater/res/ --pseudo-localize --legacy
aapt2 F 02-06 14:31:03 34109 34109 ResourceParser.cpp:342] Check failed: node_stack.size() == 1u
Aborted (core dumped)
It’s very confusing for the beginners, as the whole process ends with a RC 1 and a generic “ninja failed” error message
I didn’t test further, maybe the “<>” …
I can confirm that the same build is successful after removing the whole line (-e “OTA_URL=<ota-server-url>” \).
I would humbly suggest 2 solutions :
- explain that this whole line is optional (and why)
- give another template, i.e. http://you_ota_server
I think this could be a good opportunity to document the implementation of a OTA server
@manoj : could you please help with this ? Thanks !