Upgrade gradle version
Fix on onCancelled