Reputation: 7951
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
Reputation: 669
If you are using Android Studio follow step below.
SDK Manager
-> SDK Tool
-> click on Google Play
service and ApplyModule Setting
or Project Structure
-> on Dependencies
tab click on +
button -> select 1.Library Dependency
->Select play-services (...)
then click OKBuild
-> Clean Project
Upvotes: 2
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
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