In my case,I only add a release client ID in Google Play Console. When I run my app by click button RUN in AS,the network connection error show.But when I run the apk generated by the signed,it work well. So, add a debug client id if you want to run your app inside AS.