Apache ant failed with args / can't write manifest

Did you really check the box using gradle instead of ant? Do you have the same error?? You on 4.20 now? Provide more recents info.
Also be sure you have latest android code works installed.