handle no network connection

Handle no network connection
update to latest android studio