aapt2: aapt2 is a staged build (compile and link).
- we destroy the "compile" stage item after a link, but keep the pending directory
- apktool then cannot complete link stage
- if aapt2 is used, lie to system and re-process
- todo: rethink this
@@ -459,7 +459,7 @@ public class Androlib {
}
File apkDir = new File(appDir, APK_DIRNAME);
if (apkOptions.forceBuildAll || isModified(newFiles(APP_RESOURCES_FILENAMES, appDir),
- newFiles(APK_RESOURCES_FILENAMES, apkDir))) {
+ newFiles(APK_RESOURCES_FILENAMES, apkDir)) || apkOptions.isAapt2()) {
LOGGER.info("Building resources...");
if (apkOptions.debugMode) {
