GoogleAuthUtil cannot be resolved

I am using Google Play Service authorization with GoogleAuthUtil in my Android application. I did this part about two months ago, it worked perfectly and then forward. Yesterday I updated the SDK. Now I get this error in my application. It says: "GoogleAuthUtil cannot be resolved."
Has something changed in the updated SDK?
How can i solve this?

I import 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 get

com.google.android.gms.auth could not be resolved.

+2
source share
3 answers

Whenever you update a library, be sure to remove it from your links first and add it to your links again. Then clean the project. Restart Eclipse if necessary. And I feel that you are good to go! :)

+6
source

Just remove the <uses-library> from your AndroidManifest.xml and restart and clear everything. Of course, it will start to work.

+3
source

If you are using Android Studio, take a step below.

  • Open the SDK Manager → SDK Tool → click on the Google Play service and attach
  • Click the Module Setting tab or the Project Structure → on Dependencies , click the + button → select 1.Library Dependency → Select play-services (...) , then click OK
  • Clean Build Clean Project
+2
source

Source: https://habr.com/ru/post/1495850/


All Articles