Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resolve issue of "com.google.android.gms.auth.api.signin.internal.SignInHubActivity" ActivityNotFoundException in google signin integration

I have integrated google signin in android app but when run app I getting exception like:

android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example/com.google.android.gms.auth.api.signin.internal.SignInHubActivity};

have you declared this activity in your AndroidManifest.xml?

Can you please tell how I declare SignInHubActivity in AndroidManifest.xml file

like image 621
hharry_tech Avatar asked Nov 30 '15 20:11

hharry_tech


2 Answers

Really I was doing very silly mistake. I just declare activity see below...

<activity
          android:name="com.google.android.gms.auth.api.signin.internal.SignInHubActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateAlwaysHidden|adjustPan" />

Now my problem solved. Google signin working fine.... Thank you

like image 173
hharry_tech Avatar answered Oct 19 '22 07:10

hharry_tech


Are you using Eclipse with ADT? (Android Development Tools plugin). Have you followed instructions here to set up Google Play services SDK? https://developers.google.com/android/guides/setup

If you set it up correctly, I believe SignInHubActivity definition will be automatically merged into your manifest from Google Play services SDK and you don't need to explicitly declare it.

like image 43
Isabella Chen Avatar answered Oct 19 '22 07:10

Isabella Chen