Execution of build is in an endless loop

Download the app APDE on Play Store and test your sketch in app mode, to see if there is any error.