Everything works right the first time, if you launch a second time you see this error:
FATAL EXCEPTION: main
Process
I faced a similar issue when I placed a login button in two different Fragments belonging to the same Activity.
I solved this issue by assigning different ids to each automatically-managed GoogleApiClient.
For example, in Fragment 1, while creating my GoogleApiClient object I assigned 0 as the id:
mGoogleApiClient = new GoogleApiClient.Builder(getActivity())
.enableAutoManage(getActivity(), 0, this /* OnConnectionFailedListener */)
.addApi(Auth.GOOGLE_SIGN_IN_API, gso)
.build();
In Fragment 2, while creating my GoogleApiClient object I assigned 1 as the id:
mGoogleApiClient = new GoogleApiClient.Builder(getActivity())
.enableAutoManage(getActivity(), 1, this /* OnConnectionFailedListener */)
.addApi(Auth.GOOGLE_SIGN_IN_API, gso)
.build();