upgrade gradle, fix uncaught exception