Trouble enabling GoogleApiClient in AppCompatActivity
<p>Trying to follow basic setup as per Google's guides:</p>
<pre><code>mGoogleApiClient = new GoogleApiClient.Builder(this)
        .enableAutoManage(this /* FragmentActivity */, this /* OnConnectionFailedListener */)
        .addApi(Auth.GOOGLE_SIGN_IN_API, gso)
        .build();
</code></pre>
<p>The second &quot;this&quot; for the OnConnectionFailedListener fails</p>
<blockquote>
<p>Wrong 2nd argument type.</p>
<p>Found: '... .HomeScreen', required: 'com.google.android.gms.common.api.GoogleApiClient.OnConnectionFailedListener' less...</p>
<p>enableAutoManage (FragmentActivity,
com.google.android.gms.common.api.GoogleApiClient.OnConnectionFailedListener)
in Builder cannot be applied to (HomeScreen,
... .HomeScreen)</p>
</blockquote>
<p>So I tested this by changing the class extend from AppCompatActivity to FragmentActivity and it worked fine.</p>
<p>I'm not sure how to implement a listener to satisfy manually, and since AppCompatActivity extends FragmentActivity, I'm very confused as to what is going on in this case to debug it.</p>
<p>Further, the class has AppCompatActivity dependencies, so I'm not sure how to proceed in setting up the API.</p>
<p>This is follow on work to setting up the FacebookSDK, which I got working, so I was kind of hoping they had a similarly functioning &quot;button&quot;, and that it may work in a similar manner, but the equivalent SDK initialization seems to be hiccuping at this stage.</p>
<p>Any direction would be welcomed.</p>
<p>Also, for clarification, I only need to be able to authenticate with Google, where as tagging this post with the API suggests that it is for Google Play Services, which is beyond the scope of what I require, so if I can just axe this portion, that'd be fine.</p>