fixing gradle build issues due to older version
fixing npe when opening the debug for the first time