sheetal_158
sheetal_158

Reputation: 7951

GoogleAuthUtil cannot be resolved

I am using Google Play Service's Authorization with GoogleAuthUtil in my Android applcation. I did this part about 2 months back, its been working perfectly fine then onwards. Yesterday, I updated the SDK. Now I am getting this error in my application. It says "GoogleAuthUtil cannot be resolved".
Has anything changed in the updated SDK?
How can I solve this?

I am importing the following:

import com.google.android.gms.auth.GoogleAuthException;
import com.google.android.gms.auth.GoogleAuthUtil;
import com.google.android.gms.auth.GooglePlayServicesAvailabilityException;
import com.google.android.gms.auth.UserRecoverableAuthException.

I am getting

com.google.android.gms.auth cannot be resolved.

Upvotes: 2

Views: 7125

Answers (3)

If you are using Android Studio follow step below.

  1. Open SDK Manager -> SDK Tool -> click on Google Play service and Apply
  2. Open Module Setting or Project Structure -> on Dependencies tab click on + button -> select 1.Library Dependency ->Select play-services (...) then click OK
  3. Clean your project by Build -> Clean Project

Upvotes: 2

Aaswad Satpute
Aaswad Satpute

Reputation: 794

Just remove the <uses-library> tag from your AndroidManifest.xml and restart and clean everything. For sure it will start running.

Upvotes: 3

Aaswad Satpute
Aaswad Satpute

Reputation: 794

Whenever you update any library make sure to first remove it from your references and again add it to your references. After that clean the project. Restart Eclipse if needed. And I feel then you are good to go!! :)

Upvotes: 6

Related Questions