invalid_targets.extend(vt.targets)
for target in invalid_targets:
outdir = self.dx_out(target)
safe_mkdir(outdir)
classes_by_target = self.context.products.get_data("classes_by_target")
classes = []
def add_to_dex(tgt):
After Change
if not vt.valid:
classes = self._gather_classes(vt.target)
if not classes:
raise self.EmptyDexError("No classes were found for {}.".format(vt.target))
args = self._render_args(vt.results_dir, classes)
self._compile_dex(args, vt.target.build_tools_version)