Android buidl failed: have not accepted the license agreements

After upgrading the engine version to 4.21, I had the same issue as mentioned above. I have disabled that option as proposed in the answer, and it worked for me. Thanks for the solution.